Password Encryption Using Encrypt.bat

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
nvalia
Premium Member
Premium Member
Posts: 180
Joined: Thu May 26, 2005 6:44 am

Password Encryption Using Encrypt.bat

Post by nvalia »

Hi All,

Datastage 8.7 on Windows 2008 R2

I am successfully able to run a job from a script using the dsjob command and hard coding the userid and password, along with other required parameters for this command. (So this means my domain used in the command is correct).

Now I tried to use an Encrypted UserID and Password with the dsjob command and it fails giving a Domain Login error - 1010 dsje_domainlogtofailed

I encrypted the password (say "test") using this command,
C:\IBM\InformationServer\ASBNode\bin\encrypt.bat test and it returns "{iisenc}xvybkFWZNPlfJmdZa3WpMQ=="..
then I used this value instead of the actual password (test) in the dsjob command and it fails..(Similarly I encrypted the userid as well)

Is it necessary to encrypt both Userid and Password, or we can only do for the password?

Has Anyone been able to use this Encryption successfully or has seen this error?

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

Post by ray.wurlod »

You can encrypt any string you like. I typically only encrypt passwords. While I have not used it with dsjob, I have used it successfully with other commands including istool and importexportmanager.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nvalia
Premium Member
Premium Member
Posts: 180
Joined: Thu May 26, 2005 6:44 am

Post by nvalia »

Since it does not seem to work with dsjob command, how else can we have a encrypted password work with dsjob
(we do not have any third party encryption tool/utility)
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can dsjob use an authorisation file? (I'm not currently in a position to check.)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can reference a file that holds server, userid and password (from what I recall) and if that's what you mean by an authorization file then yes! Never tried an encrypted password there.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nvalia
Premium Member
Premium Member
Posts: 180
Joined: Thu May 26, 2005 6:44 am

Post by nvalia »

But even if I call this Credentials file the password would still not be encrypted right..It is still visible in this file
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I don't know if you can use an encrypted password in that file. That would be either a "try and see" thing or an "ask support" thing. We didn't worry about it being "visible" in the file, we made sure access to the file was locked down enough to satisfy our security folks.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nvalia
Premium Member
Premium Member
Posts: 180
Joined: Thu May 26, 2005 6:44 am

Post by nvalia »

Thanks..
I was also thinking of that as the last option..Securing the credentials file!
nvalia
Premium Member
Premium Member
Posts: 180
Joined: Thu May 26, 2005 6:44 am

Post by nvalia »

I created a Credentials File and it has values for all 4 components, Order in the file does not matter

# Datastage credentials
domain=<Servername>:9080
server=<servername>
user=<username>
password={iisenc}ELpGU5b/cE8a6db8yIqw8Q==

** NOTE:password is encrypted using this command
C:\IBM\InformationServer\ASBNode\bin\encrypt.bat <password>
OR
C:\IBM\InformationServer\ASBServer\bin\encrypt.bat <password>

Then I am calling the dsjob as below with relevant options

dsjob -authfile $DIR/DS_Cred_File.txt -run ... <prjname> <jobname>
** NOTE:We need to provide the full path of the Credentials file

This way I am able to use the encrypted password with the dsjob command successfully!
Post Reply