File_Passwd_Custom::modUser()

File_Passwd_Custom::modUser() -- Modify user

Synopsis

mixed File_Passwd_Custom::modUser (string $user [, array $properties = array()])

Description

You shouldn't modify the password of the user with this method, use File_Passwd_Custom::changePasswd() instead.

You should use this method only if the 'name map' is used, too.

Parameter

string $user

the user to modify

array $properties

an associative array of properties to modify

Return value

Returns TRUE on success, PEAR_Error on failure.

Table 37-1. Possible PEAR_Error values

Error CodeSummary
FILE_PASSWD_E_EXISTS_NOTuser doesn't exists
FILE_PASSWD_E_INVALID_CHARSany of the extra properties contains the delimiter

See

See File_Passwd_Custom::useMap()

See File_Passwd_Custom::changePasswd()

Note

This function can not be called statically.