mixed File_Passwd_Smb::addUser (
string $user
, string $pass
, array $params
, boolean $isMachine = false
)
Add an SMB user/machine account.
$user
the user/machine to add
$pass
the new plaintext password
$params
additional properties of account:
$isMachine
whether to add an machine account
Returns TRUE on success, PEAR_Error on failure.
Error Code | Summary |
---|---|
FILE_PASSWD_E_EXISTS_ALREADY | account already exists |
FILE_PASSWD_E_INVALID_CHARS | user/machine name contains illegal characters |
This function can not be called statically.