To use anonymous File Transfer Protocol (FTP) on the i5/OS® operating system, you need to write two exit programs: FTP server logon exit program and FTP server request validation exit program.
The FTP server logon exit program enables the ANONYMOUS user ID and forces the ANONYMOUS user to the public library or directory. The FTP server request validation exit program restricts the commands, files, and directories or libraries that the ANONYMOUS user can use.
The FTP server communicates with each exit program through a specific exit point. Parameters are passed between the server and the exit program. The format of the exchanged information is specified by an exit point format.
Program | Exit Point | Format |
---|---|---|
Server logon | QIBM_QTMF_SVR_LOGON | TCPL0100, TCPL0200, or TCPL0300. 1 |
Request validation | QIBM_QTMF_SERVER_REQ | VLRQ0100 |
|
Example programs are available to help you set up anonymous FTP on your system. You can use these examples as a starting point to build your own programs. By copying portions of the code from the examples, you can add them to programs that you write yourself. It is suggested that you run the example programs on a system other than your production system.
These examples are for illustration purposes only. They do not contain enough features to run on a production machine as is. Feel free to use them as a starting point, or to use sections of code as you write your own programs.
Related concepts
Getting to know iSeries Navigator Request validation exit point: client and server