Previous | Next | Contents | Index |
Change a user's password.FORMAT
int POPSTORE_user_pw_change_d (domain, domain_len, user, user_len, new_password, new_password_len errmsg, errmsg_len, errmsg_max) char *domain; int domain_len; char *user; int user_len; char *new_password; int new_password_len; char *errmsg; int *errmsg_len; int errmsg_max; |
Name of the user domain to use. Supply a value of NULL to indicate the
domain
default
domain. Used for input only.Length in bytes of the user domain name,
domain_len
domain
. Supply a value of zero to indicate thedefault
domain. Used for input only.Name of the user to change the password for. Used for input only.
user
Length of the username string,
user_len
user
. Used for input only.New password to use for the account. Used for input only.
new_password
Length in bytes of the new password string,
new_password_len
new_password
. Used for input only.Address of character array that
errmsg
POPSTORE_user_pw_change
can put an error message into if the password change fails.Address of an integer that
errmsg_len
POPSTORE_user_pw_change
can write the length of the error message that it put intoerrmsg
.The size of the array that
errmsg_max
errmsg
points to.
A user's password can be changed with POPSTORE_user_pw_change_d. As input, supply the name of the user to effect the change for as well as the new, plain text password to use, and the user domain. The length of the new password can not exceed POPSTORE_MAX_PWD_LEN bytes. Note that if you already have a user context from POPSTORE_user_begin_d, then you can call POPSTORE_user_update to change the password.
POPSTORE_SUCCESS Normal, successful completion. POPSTORE_FILOPNERR Unable to open the profile file for reading. POPSTORE_INSUFPRIV Insufficient privileges to access the profile file, or, on OpenVMS, the process lacks SYSLCK privilege. POPSTORE_LCKOPNERR Unable to obtain lock information for the profile file. POPSTORE_LOCKERROR Unable to obtain a lock for the profile file. POPSTORE_NOSUCHUSR No such user account. POPSTORE_READERROR An error while attempting to read data from the profile file. POPSTORE_TOOLONG The resulting profile file name is too long. POPSTORE_VMERROR Insufficient virtual memory. POPSTORE_WRITERROR An error occurred while writing data to the user's profile file.
Previous | Next | Contents | Index |