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
Password Encryption Using Encrypt.bat
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
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
"You can never have too many knives" -- Logan Nine Fingers
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!
# 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!