User Exit Programs-FTP

510 pts.
Tags:
CL
RPGLE
User Exit Program FTP
Hello I am strggling with first user exit program. I only want to allow specific users (those keyed into a file), to be able to log into FTP. In addition, I only want to allow the function of the SENDING of files, once logged in. I am struggling with how to capture the user id from the STRFTP command. Not sure where this information is. But I need to pass it into a CL(RPGLE) program, and then chain against the "user file" to validate. In addition, I would need an extra parm field for the Function. This parm would be used for validating that the user once logged in, would only be allowed to SEND files. Can anyone help me out with this ?
ASKED: February 5, 2008  2:20 PM
UPDATED: February 5, 2008  4:02 PM

Answer Wiki

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

i5/OS provides an exit point for the FTP client. This means that you can have i5/OS call a program of your own when someone tries to start and FTP session and when they try to perform various operations. Your exit program can then allow or dis-allow the request. The exit point, QIBM_QTMF_CLIENT_REQ, is documented in the i5/OS Information Center <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaiq/rzaiqsvreqep.htm”>here</a> for a general overview, and <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/rzaiq/rzaiqpsvrep.htm”>here</a> for the specifics of what information is provided to your program. The second parameter passed to your program is the operation requested (Start, Send a File, Receive a File, etc), the third parameter is the name of the requesting user profile, and the sixth parameter additional information on the request (for instance, for a Send File request the sixth parameter gives you the name of the file they want to send).

Hope this helps,
Bruce Vining
<a href=”http://www.brucevining.com/”>http://www.brucevining.com/</a>

Discuss This Question:  

 
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

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