Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Encode and Decode when logon in BTEQ

Status
Not open for further replies.

milulove04

Programmer
Nov 26, 2007
3
Hi everybody,

I want to encode & decode password when calling .Logon command in BTEQ:
.LOGON 1/username, pass

Can you give me a solution about this?

Thanks a lot.
Dat Nguyen
 
First, password doesn't appear in log file. It's secure on this side.
Second, you can use an external file to store your logon command and call it with .RUN FILE logon_file
It won't be very difficult to create a temporary uncrypted logon_file that will be erased on next bteq.
Something like that :
Code:
echo ".LOGON TDP/USR,"$(uncrypt passwd) > /tmp/logon_file
bteq <<-EoF > Logfile
 .RUN FILE /tmp/logon_file
 .OS rm /tmp/logon_file
 .. bteq commmands ..
EoF
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top