File_Passwd_Smb::addUser()
Parameter
- string $user
the user/machine to add
- string $pass
the new plaintext password
- array $params
additional properties of account:
userid
flags
lct
comment
- boolean $isMachine
whether to add an machine account
Return value
Returns TRUE on success, PEAR_Error on failure.
Table 43-1. Possible PEAR_Error values
| Error Code | Summary |
|---|---|
| FILE_PASSWD_E_EXISTS_ALREADY | account already exists |
| FILE_PASSWD_E_INVALID_CHARS | user/machine name contains illegal characters |
