Server logon exit point

You can control the authentication of users to a TCP/IP application server with the TCP/IP Application Server Logon exit point.

This exit point allows server access based on the originating session's address. It also allows you to specify an initial working directory that is different from those that are in the user profile.

When you add an exit program to the exit point, the server calls the logon exit program each time a user attempts to log on. The exit program sets the return code output parameter to indicate whether the server will continue the logon operation. Alternate return code settings are available for processing the logon, and initializing directory information.

The iSeries™ exit point for FTP server logon is:

QIBM_QTMF_SVR_LOGON

These are the three exit point formats available:

Notes:
  1. There can be only one exit program registered for the FTP server logon exit point. You must decide which of the three exit point formats you want to use.
  2. For the FTP application, this exit point provides the capability to implement anonymous FTP, including the information required to log and control access.
  3. For all character parameters in exit point formats TCPL0100 and TCPL0200, and all character parameters without an associated CCSID in exit point format TCPL0200: Character data passed to the exit program is in the CCSID of the job. If the job CCSID is 65535, the character data is in the default CCSID of the job. Any character data that is returned by the exit program in these parameters is expected to be in this same CCSID.

Server logon exit program for anonymous FTP

For anonymous FTP, write the server logon program to perform the following functions:

What your program should include:

Is there an exit program time-out feature?

There is no time-out for FTP exit programs. If the exit program has an error or exception that it cannot handle, the FTP server will abort the session.

QTCP needs authority

When the application calls the FTP server logon exit program, the FTP server job is running under the QTCP user profile.

Make sure that QTCP has sufficient authority to access and write to any log files or other satellite files associated with the exit programs.

Example programs

Example programs are available to help you set up anonymous FTP on your server. These examples are for illustration purposes. They do not contain enough features to run on a production machine as is. You can use these samples as a starting point to build your own programs. By copying portions of the code from the samples, you can add them to programs that you write yourself. It is recommended that you run the sample programs on a system other than your production system.

Related concepts
Control File Transfer Protocol access
Manage access using File Transfer Protocol exit programs
Configure anonymous File Transfer Protocol
Determine problems with File Transfer Protocol
Related reference
Write exit programs for anonymous File Transfer Protocol