Mask Passwords with ** a field?

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
cedua
Participant
Posts: 22
Joined: Mon Nov 10, 2008 1:21 pm

Mask Passwords with ** a field?

Post by cedua »

Hi all,

I'm actually running a job that requires a txt file (this file is in a diferent server), so I'm using a FTP in the UNIX shell

I call the shell with something like this:
Argget.sh #Archivo# #Usu# #Pass#

The shell works fine, it transfers my file and all is working ok.

THE ISSUE IS: If I double click the job I get the "last run" parameters I used, and one of these is the password I used in the FTP.

QUESTION: Is there a way to "mask" this with "*"??
(I can't put the login/passwd in hardcode, because the job can be run by different users)

Greetings,
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No.

One site at which I worked edited the log entry in an after job subroutine to mask the clear password.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
girija
Participant
Posts: 89
Joined: Fri Mar 24, 2006 1:51 pm
Location: Hartford

Post by girija »

You can't do it. You need to scrambled password value and write into a file. Un-scramble < Cat the file and used password inside your script.
You can use PERL scripte for this.
cedua
Participant
Posts: 22
Joined: Mon Nov 10, 2008 1:21 pm

Post by cedua »

ray.wurlod wrote:No.

One site at which I worked edited the log entry in an after job subroutine to mask the clear password. ...
OK, That sounds nice... how can I do it?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Write an after-job subroutine that:
  • determines the job number of DSJ.ME

    opens that job's log (hashed) file

    finds the current "job started" event using DSGetNewestLogId()

    reads and updates that log event (replacing password parameter values with asterisks) and writes it back to the log
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
cedua
Participant
Posts: 22
Joined: Mon Nov 10, 2008 1:21 pm

Post by cedua »

Solved, the user and pass are in a shell file (which it's opening the FTP)

Thx!
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Perhaps solved, but not an answer to the original question.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply