Writing exit programs for anonymous File Transfer Protocol
To use anonymous File Transfer Protocol (FTP) on the IBM® i 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.
Exit points and exit point formats
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
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.