Allows a user's password and/or user details to be changed. This function is used to change the user's password for the user executing this function, or to force change another user's password (in this case the password is also expired). The user's new password and/or user details must be specified.
&SECCALL CHANGE USERID=userid
[ PWD=password ]
[ NEWPWD=newpassword ]
[ FIELDS={ (nnnn,...,nnnn) | * } |
DETAILS={ NO | YES } ]
[ PREFIX=prefix ]
Operands:
The user ID of the target user for which the password is to be changed. The user ID must be 1 to 8 characters long and defined to the security subsystem. If the user ID is other than that of the issuing user ID then the issuing user must be authorized for UAMS.
The current password of the issuing user ID. The current password must be supplied if the user is changing their own password. This operand is required if the issuing user is not authorized for UAMS. If the user is authorized for UAMS and the current password is not provided then the new password is expired and the user must change their password the next time they log on to your product region.
The new password to be used by the user the next time they log on to your product region. The new password must be 1 to 8 characters long or a minimum length as specified by the SYSPARMS PWMIN operand and a maximum length as specified by the SYSPARMS PWMAX operand.
The FIELDS operand provides a list of nominated structured field values for the user ID being defined. A list of structured field values is supplied. To set all structured fields, you can use an asterisk (*). The user variables that identify the structured fields in the field list must be in the form &prefixnnnn, where prefix is defined by the PREFIX operand and nnnn is a defined structured field for this system.
Note: For more information about structured fields, see the Security Guide.
Valid structured fields for &SECCALL CHANGE are as follows:
User name
User address
User telephone phone number
User language code
User email address
User time zone name
Event notification services attribute 1
Event notification services attribute 2
Event notification services attribute 3
Event notification services attribute 4
Note: The FIELDS operand cannot be used in conjunction with the DETAILS operand.
Specifies whether user details, name, location, and phone number are to be changed.
DETAILS=NO specifies that user details are not to be changed.
DETAILS=YES indicates that the user details are to be changed. The user details are identified as the following structured fields:
The user details are referred to from NCL in the form &prefix0011, &prefix0012, and &prefix0013, where prefix is defined by the PREFIX operand.
The DETAILS operand cannot be used in conjunction with the FIELDS operand.
Defines a 1- to 7-character prefix of the variables referred to by the DETAILS operand. The default is SEC.
Return Codes:
The result of the CHANGE function sets &RETCODE as follows:
Request successful. The user's password has been successfully updated.
The user's password and/or user details update was unsuccessful, function unsupported.
The user's password and/or user details were not updated. Function supported but an error occurred. &SYSMSG is set to contain an error message indicating cause of failure.
The &ZFDBK system variable is set as follows after the fields or user details CHANGE function:
User details update was successful.
User details update was unsuccessful.
| Copyright © 2009 CA. All rights reserved. |
|