× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



> -----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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.