31 require_once
"File/Passwd.php";
35 require_once
"Auth/Container.php";
39 require_once
"PEAR.php";
111 return File_Passwd::staticAuth($this->options[
'type'], $this->pwfile, $user,
$pass);
126 $pw_obj = &$this->
_load();
131 $users = $pw_obj->listUser();
132 if (!is_array($users)) {
136 foreach ($users as $key => $value) {
137 $retVal[] = array(
"username" => $key,
138 "password" => $value[
'passwd'],
139 "cvsuser" => $value[
'system']);
162 $params = array($user,
$pass);
171 $pw_obj = &$this->
_load();
176 $res = call_user_func_array(array(&$pw_obj,
'addUser'), $params);
181 $res = $pw_obj->save();
201 $pw_obj = &$this->
_load();
206 $res = $pw_obj->delUser($user);
211 $res = $pw_obj->save();
231 $pw_obj = &$this->
_load();
236 $res = $pw_obj->changePasswd($username, $password);
241 $res = $pw_obj->save();
261 if (!isset($pw_obj)) {
262 $this->
log(
'Instanciating File_Password object of type '.$this->options[
'type'],
AUTH_LOG_DEBUG);
263 $pw_obj = File_Passwd::factory($this->options[
'type']);
268 $pw_obj->setFile($this->pwfile);
270 $res = $pw_obj->load();
290 $this->options[
'type'] =
'Cvs';
304 foreach ($array as $key => $value) {
305 if (isset($this->options[$key])) {
306 $this->options[$key] = $value;