410 pts.
 User Exit Programs-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 ?

Software/Hardware used:
ASKED: February 5, 2008  2:20 PM
UPDATED: February 5, 2008  4:02 PM

Answer Wiki:
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>
Last Wiki Answer Submitted:  February 5, 2008  4:02 pm  by  bvining   6,055 pts.
All Answer Wiki Contributors:  bvining   6,055 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _