Use the SECURITY() function to validate a user ID and password or to change an IMOD task's authority to that of a different user ID.
The SECURITY() function has this syntax:
SECURITY({VERIFY|LOGON},userid,password,[newpass])
The SECURITY() function takes these arguments:
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.
New password. If both userid and password are correct, newpass replaces password.
Note: This change is permanently recorded by the system security software.
The SECURITY() function produces these return codes.
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 © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |