|
user_chpasswd routine |
|
|
When XCICS/TS auth_mode is set to "user", user may define an user_chpasswd routine to handle the operator password change SIGNOFF (CESN and EXEC CICS SIGNON NEWPASSWORD). If this routine is not declared operators will not be able to change their password. After a succesfull SIGNON, if the a new password is requested, XCICS/TS calls the routine passing the USERID, the old and new PASSWORDs entered by the operator and the pointer to the SNT entry of the user. The routine may handle this information and return a return code to communicate to XCICS/TS whether the operation succeeded or not. If the return code is not equal to CXE_OK (0), the condition INVREQ is raised. Prototype int function_name(char *userid, char *old_password, char *new_password, tCXsnt *snt_entry); Passed parameters
Return codes 0 OK Example declaration define exit_program type=user_chpasswd, name=dfhep_chpasswd, library=libmysnt.so; Example code #include "cics.h" |