File_Passwd_Authdigest::addUser() – Add an user


mixed File_Passwd_Authdigest::addUser ( string $user , string $realm , string $pass )


Add an user to the AuthDigestFile.

$user and $realm must start with an alphabetical charachter and must NOT contain any other characters than alphanumerics, the underline and dash.


string $user

the user to add

string $realm

the realm the user should be in

string $pass

the plaintext password

Return value

Returns TRUE on success, PEAR_Error on failure.

Possible PEAR_Error values
Error Code Summary
FILE_PASSWD_E_EXISTS_ALREADY user already exists in the supplied realm
FILE_PASSWD_E_INVLAID_CHARS user or realm contains illegal characters


This function can not be called statically.

Save changes (Previous) Change password (Next)
Last updated: Mon, 05 Oct 2015 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

There are no user contributed notes for this page.