previousFile_Passwd_Smb::save (Previous) (Next) File_Passwd_Smb::modUsernext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

File_Passwd_Smb::addUser

File_Passwd_Smb::addUser() – Add an user

Synopsis

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

Description

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 value

Returns TRUE on success, PEAR_Error on failure.

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

Note

This function can not be called statically.

previousFile_Passwd_Smb::save (Previous) (Next) File_Passwd_Smb::modUsernext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.