mixed File_Passwd_Authdigest::changePasswd (
string $user
, string $realm
, string $pass
)
Change the password of a certain user in a specific realm.
This method in fact adds the user whith the new password after deleting the user.
$user
the user whose password should be changed
$realm
the realm the user is in
$pass
the new plaintext password
Returns TRUE on success, PEAR_Error on failure.
Error Code | Summary |
---|---|
FILE_PASSWD_E_USER_NOT_IN_REALM | user doesn't exist in the supplied realm |
FILE_PASSWD_E_INVALID_CHARS | user or realm contains illegal characters |
This function can not be called statically.