This function validates a user ID and password or changes the authority for an IMOD task to that of a different user ID.
SECURITY({VERIFY|LOGON},userid,password,[newpass])
Parameters
Checks the user ID/password combination for validity.
Checks the user ID/password combination for validity and, if valid, the IMOD task continues execution under the authority of the new user ID.
User ID known to the system security software.
Password that authorizes the user ID.
The new password. If userid and password are correct, newpass replaces password.
Note: The system security software permanently records this change.
ARG n MISSING OR INVALID
RACROUTE FAILED: saf_rc racf_rc racf_re
saf_rc
The return code as set by SAF
racf_rc
The return code as set by RACF
racf_re
The reason code as set by RACF
Example
parse arg userid password result = security('logon',userid,password) if rc ^= 0 then return 'LOGON REJECTED' return 'LOGON SUCCESSFUL'
Copyright © 2014 CA Technologies.
All rights reserved.
|
|