NET/MASTER Network Control Language (NCL) Programmer's Guide

Accessing the User ID Management Services (UMS) Database
Advanced NCL Programming
18–8 106160 Tandem Computers Incorporated
Changing a Record The SECCALL CHANGE verb changes passwords and a restricted set of personal
details for existing user ID definition records in the UMS database. Password changes
are either normal or forced.
A normal password change changes your own password. This occurs when you
simply decide to change your own password or when your password expires. A
normal password change does not require UMS authority. The current password
must be provided. The following examples perform a normal password change:
SECCALL CHANGE USERID=MYNAME NEWPWD=MYNEWPW PWD=MYOLDPW
A forced password change changes the password of the specified user. A forced
change of password does not require the current password to be specified using the
SECCALL CHANGE verb. However, UMS authority is required in order to change it.
The following examples perform a forced password change:
SECCALL CHANGE USERID=MYNAME NEWPWD=MYNEWPW
SECCALL CHANGE USERID=YOURNAME NEWPWD=YOURPWD
The following NCL procedure changes a password for the specified user ID:
zex1802n: PROCEDURE EXTPARSE SMART NOFOLD
/* Changes a password for a user ID */
/* &1 = user ID */
/* &2 = old password */
/* &3 = new password */
SECCALL CHANGE USERID=&1 PWD=&2 NEWPWD=&3
SELECT &SYS.RETCODE
WHEN 0 THEN SAY "0 Password changed to "&3
WHEN 4 THEN SAY "4 Function not supported"
WHEN 8 THEN SAY "8 "&SYSMSG
OTHERWISE
SAY "&SYS.RETCODE is "&SYS.RETCODE
END /*select*/
END zex1802n
The user ID, old password, and new password are specified as parameters when the
NCL procedure is executed.