Skip to main content

IrisChangePasswordA

IrisChangePasswordA

Variants: IrisChangePasswordW, IrisChangePasswordH

int IrisChangePasswordA(IRIS_ASTRP username, IRIS_ASTRP oldpassword, IRIS_ASTRP newpassword)
Arguments

username Username of the user whose password must be changed.
oldpassword User's old password.
newpassword New password.
Description

This function can change the user's password if InterSystems authentication or delegated authentication is used. It is not valid for LDAP, Kerberos, or other forms of authentication. It must be called before a Callin session is initialized. A typical use would be to handle a IRIS_CHANGEPASSWORD error from IrisSecureStart. In such a case IrisChangePassword would be called to change the password, then IrisSecureStart would be called again.

Return Values for IrisChangePasswordA

IRIS_FAILURE An unexpected error has occurred.
IRIS_SUCCESS Password changed.
FeedbackOpens in a new tab