Question

  Asked: Feb 5 2008   2:20 PM GMT
  Asked by: Piano


User Exit Programs-FTP


User Exit Program FTP, RPGLE, CL


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 ?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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 here for a general overview, and here 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
http://www.brucevining.com/
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register