The exit point for FTP server application request validation is QIBM_QTMF_SERVER_REQ. The exit point for FTP client application request validation is QIBM_QTMF_CLIENT_REQ. The interface that controls the parameter format for these exit points is VLRQ0100. The VLRQ0100 exit point interface contains certain parameters. The following table shows the parameters and parameter format for the VLRQ0100 interface.
Parameter | Description | Input or output | Type and length |
---|---|---|---|
1 | Application identifier | Input | Binary (4) |
2 | Operation identifier | Input | Binary (4) |
3 | User profile | Input | Char (10) |
4 | Remote IP address | Input | Char (*) |
5 | Length of remote IP address | Input | Binary (4) |
6 | Operation-specific information | Input | Char (*) |
7 | Length of operation-specific information | Input | Binary (4) |
8 | Allow operation | Output | Binary (4) |
Here are the parameter descriptions:
Value | Application |
---|---|
0 | FTP client program |
1 | FTP server program |
2 | REXEC server program |
3 | TFTP server program |
The following table demonstrates the possible values when the application identifier (parameter 1) indicates the FTP client or FTP server program.
Value | Operation ID | Client subcommand | Server subcommand |
---|---|---|---|
0 | Start session | Open, SECOpen | New connection |
1 | Create directory/library | * | MKD, XMDK |
2 | Delete directory/library | * | RMD, XRMD |
3 | Set current directory/library | LCD | CWD, CDUP, XCWD, XCUP |
4 | List files | * | LIST, NLIST |
5 | Delete file | * | DELE |
6 | Send file | APPEND, PUT, MPUT | RETR |
7 | Receive file | GET, MGET | APPE, STOR, STOU |
8 | Rename file | * | RNFR, RNTO |
9 | Execute CL command | SYSCMD | RCMD, ADDm, ADDV, CRTL, CRTP, CRTS, DLTF, DLTL |
The asterisk symbol (*) represents control operations that the FTP client exit does not recognize. The only way a client can use these operations is with CL commands using the FTP client subcommand SYSCMD. Operation identifier 9 controls the execution of CL commands.
Value | Description |
---|---|
-1 | Never allow this operation identifier:
Reject this operation identifier unconditionally for the remainder of the current session. This operation identifier will not call the exit program again. |
0 | Reject the operation |
1 | Allow the operation |
2 | Always allow this operation identifier:
Allow this operation identifier unconditionally for the remainder of the current session. This operation identifier will not call the exit program again. |
Related concepts
Managing access using File Transfer Protocol exit programs