|
This is a multi-part message in MIME format. -- I found the FTP SERVER LOGON exit program applied to exit point QIBM_QTMF_SVR_LOGON by IBM for your refference. Best regards, Vengoal Chang -----Original Message----- From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On Behalf Of Gwiazdowski Wojciech Sent: Tuesday, October 15, 2002 9:04 PM To: rpg400-l@midrange.com Subject: RE: Access control of FTP clients to AS/400 > -----Original Message----- > From: Ramón Garcés [mailto:ramon_garces@yahoo.es] > Sent: Tuesday, October 15, 2002 10:58 AM > To: RPG400-L@midrange.com > Subject: Access control of FTP clients to AS/400 [....] > We have problems in understanding how to define the > variable length parameters used in the program we must > to develop in order to manage the exit point > QIBM_QTMF_SVR_LOGON. > > Can anyone help me to understand this, if possible > through a sample program. Ramon, if you want to use format TCPL0100, it's very simply. Bellow are few (most important) lines of source code. *----- Variable declaration D #AppIdent S 9B 0 D #UsrIdent S 10A D #UsrLen S 9B 0 D #AuthStr S 10A D #AuthStrLen S 9B 0 D #IPAddr S 15A D #IPAddrLen S 9B 0 D #RtnCode S 9B 0 D #UsrPrf S 10A D #Password S 10A D #InitLib S 10A C *ENTRY PLIST C PARM #AppIdent Input C PARM #UsrIdent Input C PARM #UsrLen Input C PARM #AuthStr Input C PARM #AuthStrLen Input C PARM #IPAddr Input C PARM #IPAddrLen Input C PARM #RtnCode Output C PARM #UsrPrf Output C PARM #Password Output C PARM #InitLib Output Hier is a place for your logic. This depends on you. After that you should set value #RtnCode. This value indicates whether the logon operation should be accepted or rejected. If it's nessesary you should set #UsrPrf, #Password, #InitLib. Example : C EVAL #RtnCode = 0 (reject the logon operation) C EVAL #RtnCode = 1 (continue the logon operation with the specified user identifier and authentication string) The valid values are : 0 - 6. Sorry for my English. J hope you can understend me. regards Wojciech Gwiazdowski _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. -- [ winmail.dat of type application/ms-tnef deleted ] --
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.