28 require_once
"Auth/Container.php";
32 require_once
"PEAR.php";
100 if (!is_array(
$data)) {
103 if (isset(
$data[
'users']) && is_array(
$data[
'users'])) {
104 $this->users =
$data[
'users'];
106 $this->users = array();
107 PEAR::raiseError(
'Auth_Container_Array: no user data found in options array');
109 if (isset(
$data[
'cryptType'])) {
110 $this->cryptType =
$data[
'cryptType'];
132 if ( isset($this->users[$user])
151 foreach ($this->users as $username => $password) {
152 $ret[][
'username'] = $username;
listUsers()
Returns a list of users available within the container.
$users
The users and their password to authenticate against.
const AUTH_LOG_DEBUG
Auth Log level - DEBUG.
Auth_Container_Array($data)
Constructor for Array Container.
$cryptType
The cryptType used on the passwords.
fetchData($user, $pass)
Get user information from array.
verifyPassword($password1, $password2, $cryptType="md5")
Crypt and verfiy the entered password.
while($lm_rec=$ilDB->fetchAssoc($lm_set)) $data
& 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.