FTP through CLP program

55 pts.
Tags:
AS/400 FTP
CLP
FTP
Hello, I have a script written for 'INPUT' file during the FTP process. The user-id and the password are being hardcoded in the script.To maintain the security I want to encrypt the password alone in the script.May be when the FTP is in action, the password can be retrieved from a file or data area etc. Overall - Hard coding the password in the script needs to be avoided. Awaiting for your help and thanks in advance.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

What we do is taking the User and PW from a file (or DtaAra) and putting it on the script “on the fly” and after finished the transfer, cleaning the line (in the script).

Wilson

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Sris1986
    Thanks for your response Wilson.. Can you pls share me the actual script statements used to assign the password to the user on fly? I mean the statements in the scripts used to fetch the password from data area/physical file?
    55 pointsBadges:
    report
  • WilsonAlano
    Hi, We use a RPGLE program to read the INPUT file, find the first line and replace/put password on it.
    2,600 pointsBadges:
    report
  • TomLiotta
    A basic SQL UPDATE statement can update a row in a script/table. The row may consist of a single field with a constant value such as 'PASSWORD'. Copy the script to QTEMP, update the row, execute the OVRDBF to point to your QTEMP version and execute FTP. Delete the QTEMP script. The file is essentially protected while it resides in QTEMP. Even if the job fails and doesn't delete the file, QTEMP will go away anyway. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following