IBM AS/400e Computer Hardware User Manual


 
/********************************************************************/
/* Collect input arguments and call function to determine if client */
/* should be allowed to log in to an FTP server application. */
/********************************************************************/
qtmfsvrlgn(*((int *)(argv[1])), /* Application Identifier
(Input) */
argv[2], /* User Identifier (Input) */
*((int *)(argv[3])), /* Length User of
Identifier(Input) */
argv[4], /* Authentication String (Input) */
*((int *)(argv[5])), /* Length of Authentication string */
(Input) */
argv[6], /* Client IP Address (Input) */
*((int *)(argv[7])), /* Length of Client IP Address */
(Input) */
(int *)(argv[8]), /* Return Code (Output)*/
argv[9], /* User Profile (Output)*/
argv[10], /* Password (Output)*/
argv[11]); /* Initial Current Library (Output)*/
Figure 301. Sample FTP Logon Exit Program (Part 9 of 26)
return;
}
/* Function Specification *********************************************/
/* */
/* Function Name: qtmfsvrlgn */
/* */
/* Descriptive Name: Server Logon exit function. */
/* */
/* This exit function provides control over user authentication to */
/* an FTP server. */
/* */
/* Notes: */
/* */
/* Dependencies: */
/* */
/* FTP Server Logon exit point QIBM_QTMF_SVR_LOGON was */
/* registered during FTP product installation. */
/* */
/* Restrictions: */
Figure 301. Sample FTP Logon Exit Program (Part 10 of 26)
560 OS/400 TCP/IP Configuration and Reference V4R4