29 require_once
"File/SMBPasswd.php";
33 require_once
"Auth/Container.php";
37 require_once
"PEAR.php";
86 $this->pwfile =
new File_SMBPasswd(
$filename,0);
88 if (!$this->pwfile->load()) {
108 return $this->pwfile->verifyAccount($username, $password);
117 return $this->pwfile->getAccounts();
137 return $this->pwfile->save();
153 $res = $this->pwfile->delUser($username);
155 return $this->pwfile->save();
171 $this->
log(
'Auth_Container_SMBPasswd::changePassword() called.',
AUTH_LOG_DEBUG);
172 $res = $this->pwfile->modUser($username,
'', $password);
174 return $this->pwfile->save();
fetchData($username, $password)
Get user information from pwfile.
const AUTH_LOG_DEBUG
Auth Log level - DEBUG.
changePassword($username, $password)
Change password for user in the storage container.
removeUser($username)
Remove user from the storage container.
addUser($username, $password, $additional='')
Add a new user to the storage container.
& raiseError($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false)
This method is a wrapper that returns an instance of the configured error class with this object's de...
log($message, $level=AUTH_LOG_DEBUG)
Log a message to the Auth log.
Auth_Container_SMBPasswd($filename)
Constructor of the container class.