![]() |
| Download Example: FTPEXIT |
|
||||||||||||||||||||||||
File name: FTPEXIT.RPG, TCPAPPLOG.RPG, CHGFTPEXTC.CLP, CHGFTPEXT.CMD Program name: FTPEXIT Program type: AS/400 RPG, CL and CMD Environment: OS/400 V3R2, OS/400 V3R7, OS/400 V4Rx Date Posted: March 23, 1998
The programs and commands included in this download let you attach an Exit Point program to the FTP Server, FTP Client, REXEC Server, TFTP Server, FTP Logon Server and REXEC Logon Server exit points.How to create:
You should always use an exit point program with the FTP Server to limit access to potentially damaging operations from FTP clients. Also, you will need an exit point program for the FTP Logon Server if you want to allow anonymous FTP to your AS/400.
Before creating these programs and assigning them to TCP/IP Exit Points, you should familiarize yourself with all available information about Exit Points used for TCP/IP. The primary reference is the IBM manual TCP/IP Configuration and Reference (V4, SC41-5420). Appendix I in that manual describes the Exit Point programs for TCP/IP in detail.
Download the source code for the two RPG programs, the CL program and the command from this site. Transfer the source members to source files, or enter the source code using an AS/400 editor. Use the create commands described below to create the program and command objects.Table of Downloads:
NOTE: You need authority to add programs to FTP Exit Points. DO NOT ATTACH THESE PROGRAMS TO THE EXIT POINTS IF YOU ARE UNCERTAIN ABOUT THE SECURITY IMPLICATIONS OF USING THE PROGRAMS.
Download these source files to a temporary directory on your PC:
Note: To download these files, left-click on the link and use the browser's "file/save" menu option or right-click on the link and choose "save link as".
|
File Name |
Description |
Type |
Size |
| CHGFTPEXTC |
Change parameters for FTP Exit Point program |
CLP |
26K |
| CHGFTPEXT | Command to change parameters for FTP Exit Point program |
CMD |
16K |
| FTPEXIT | FTP Exit Point program |
RPG |
50K |
| TCPAPPLOG |
Exit Point program for FTP Applicaton Logon |
RPG |
48K |
| FTPEXIT.ZIP |
Zip file containing all of the above |
ZIP |
18K |
Run the following commands in the sequence shown to create the programs and command. You are responsible for creating the library and source files that the source code is located in.Running the program:
If you are uncertain what these commands are doing, seek competent help before running the commands.
Create the CL program:CRTCLPGM PGM(library_name/CHGFTPEXTC) SRCFILE(library_name/QCLSRC)Create the CHGFTPEXT command:CRTCMD CMD(library_name/CHGFTPEXT) PGM(library_name/CHGFTPEXTC) SRCFILE(library_name/QCMDSRC)
Create the FTPEXIT program:CRTBNDRPG CMD(library_name/FTPEXIT) SRCFILE(library_name/QRPGLESRC) DFTACTGRP(*NO)
Create the TCPAPPLOG program:CRTBNDRPG CMD(library_name/TCPAPPLOG) SRCFILE(library_name/QRPGLESRC) DFTACTGRP(*NO)
Add program TCPAPPLOG to the FTP Server Logon exit point:ADDEXITPGM EXITPNT(QIBM_QTMF_SVR_LOGON) FORMAT(TCPL0100) PGMNBR(1) PGM(library_name/TCPAPPLOG)
Add program TCPAPPLOG to the REXEC Server Logon exit point:ADDEXITPGM EXITPNT(QIBM_QTMX_SVR_LOGON) FORMAT(TCPL0100) PGMNBR(1) PGM(library_name/TCPAPPLOG)
Add program FTPEXIT to the FTP Server exit point:ADDEXITPGM EXITPNT(QIBM_QTMF_SERVER_REQ) FORMAT(VLRQ0100) PGMNBR(1) PGM(library_name/FTPEXIT)
Add program FTPEXIT to the FTP Client exit point:ADDEXITPGM EXITPNT(QIBM_QTMF_CLIENT_REQ) FORMAT(VLRQ0100) PGMNBR(1) PGM(library_name/FTPEXIT)
Add program FTPEXIT to the REXEC Server exit point:ADDEXITPGM EXITPNT(QIBM_QTMX_SERVER_REQ) FORMAT(VLRQ0100) PGMNBR(1) PGM(library_name/FTPEXIT)
Add program FTPEXIT to the TFTP Server exit point:ADDEXITPGM EXITPNT(QIBM_QTOD_SERVER_REQ) FORMAT(VLRQ0100) PGMNBR(1) PGM(library_name/FTPEXIT)
Create data area QGPL/DAFTPEXIT:CRTDTAARA DTAARA(QGPL/DAFTPEXIT) TYPE(*CHAR) LEN(150) TEXT('Data Area for FTP Exit Point programs')
Before attaching the programs to the FTP Exit Points, you should run the CHGFTPEXT (Change FTP Exit Point) command. The command is used to set options in the data area used by the FTP Exit Point programs.
The programs are called by the FTP Exit Point processor each time an FTP, REXEC or TFTP function is invoked. The purpose of the programs is to examine the parameter list passed by the FTP Exit Point processor then accept or reject the request based on the settings you supply. You can add other accept/reject conditions to the program for your unique circumstances.
|
|
|