PreviousNext
Help > EASYCOM Server > EASYCOM behavior > EASYCOM Exit Programs > Logon and access security > 'Program Level' Security -  EACP003
'Program Level' Security -  EACP003

 In addition to basic safety, programs level safety can be used.

Only programs validated by data processing department can be used on AS/400.

Unauthorized EASYCOM programs may be connected to AS/400 but will be unable to make any operation (file opening, program calling or other).

 

Authorized program will send a special password to EASYCOM. A data processing department AS/400 program returns information telling if password is accepted. This password can be similar, for example, to EASYCOM program coding.

 

To activate this mechanism:

If 'Lock EASYCOM host' entry is set to *YES in CFGEAC, no file can be opened, no program can be called, no command can be sent to AS/400 by EASYCOM, until the client application frees it sending a password to it.

This option requires writing an EACP003 script. This script must be in EASYCOM job LIBL.

Warning, if option is activated and script does not exist, EASYCOM will remain locked, and no job can be created.

 

Here is this script layout:

 

PGM PARM(&PASSW &RESULT)

DCL VAR(&PASSW) TYPE(*CHAR) LEN(100)

DCL VAR(&RESULT) TYPE(*CHAR) LEN(10)

/* IF PASSW HAS THE RIGHT VALUE */

CHGVAR VAR(&RESULT) VALUES('*YES')

/* IF PASSW DOES NOT HAVE THE RIGHT VALUE */

CHGVAR VAR(&RESULT) VALUES('*NO')

 

It receives a single-entry parameter (&PASSW applicative password different from profile password). It returns &RESULT parameter.

- *YES value authorizes job starting and process to continue.

- *NO value locks the job.