sp_password

Description

Changes or queries the current status of the user’s password.

Syntax

To change the user’s password, use this syntax: sp_password old_password, new_password, [login_name]

To query the current status of the user’s password, use this syntax: sp_password

Parameters

old_password

is the current password for the user of this procedure or login name.

new_password

is the new password for the user. The new password must conform to the rules required on the DBMS in which the password change is to take effect.

login_name

is the login name of the user whose password is to be changed.

NoteThe mainframe security system rejects the request if the user lacks the authority to change another user’s password.

Usage

NoteTo change the setting of the CICS SIT table property, ask the CICS system programmer and the external security manager. The SIT property defines the intersystem refresh delay, which determines how long users remain signed on to the host when running transactions with the InterSystem Communication (ISC) setting. Its setting can affect the ability of users to log in more than once or to run multiple host transactions from TRS within the defined time period. By default, the delay is set to 30 minutes. Sybase recommends setting ISRDELAY=0.


Results

Table 12-5 shows the result set:

Table 12-5: Result set for sp_password

Column

Datatype

Possible return values and descriptions

RETURN_CODE

smallint

0 = The PEM operation returned no errors.

1 = The user ID was not found on the host.

2 = The password is incorrect.

3 = No new password was specified and the old password expired.

4 = The host security system rejected the new password.

5 = A security function failure occurred. Your password account may be revoked.

6 = An invalid request was made to PEM. The new or old password may be in an unacceptable format.

7 = General security error.

8 = Password change completed but signon failed.

CURRENT_DATE

datetime

Date and time of current successful signon.

LAST_DATE

datetime

Date and time of last successful signon.

EXPIRE_DATE

datetime

Date and time password will expire.

REVOKE_COUNT

smallint

Number of unsuccessful signon attempts since the last successful signon with this user ID.