File_Passwd_Smb::addUser()

File_Passwd_Smb::addUser() -- Add an user

Referentiesamenvatting

mixed File_Passwd_Smb::addUser (string $user, string $pass, array $params [, boolean $isMachine = false])

Beschrijving

Add an SMB user/machine account.

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 waarde

Geeft TRUE terug bij success, PEAR_Error als het faalt.

Tabel 38-1. Mogelijke PEAR_Error waarden

Error CodeSummary
FILE_PASSWD_E_EXISTS_ALREADYaccount already exists
FILE_PASSWD_E_INVALID_CHARSuser/machine name contains illegal characters

Note

Deze functie kan niet statisch worden aangeroepen.