4 include_once
'./Services/Authentication/classes/class.ilAuthContainerBase.php';
82 function fetchData($username, $password, $isChallengeResponse=
false)
104 switch ($cryptType) {
106 return ((
string)crypt($password1, $password2) === (
string)$password2);
110 return ((
string)$password1 === (
string)$password2);
113 return ((
string)md5($password1) === (
string)$password2);
116 if (function_exists($cryptType)) {
117 return ((
string)$cryptType($password1) === (
string)$password2);
118 } elseif (method_exists($this,$cryptType)) {
119 return ((
string)$this->$cryptType($password1) === (
string)$password2);
181 for ($i=0; $c = count($users), $i<$c; $i++) {
182 if ($users[$i][
'username'] == $username) {
248 if (is_null($this->_auth_obj)) {
254 return $this->_auth_obj->log($message, $level);
removeUser($username)
Remove user from the storage container.
getUser($username)
Returns a user assoc array.
changePassword($username, $password)
Change password for user in the storage container.
const AUTH_LOG_DEBUG
Auth Log level - DEBUG.
Base class for all ILIAS PEAR container classes
fetchData($username, $password, $isChallengeResponse=false)
Fetch data from storage container.
addUser($username, $password, $additional=null)
Add a new user to the storage container.
listUsers()
List all users that are available from the storage container.
const AUTH_METHOD_NOT_SUPPORTED
Returned if a container method is not supported.
getCryptType()
Returns the crypt current crypt type of the container.
verifyPassword($password1, $password2, $cryptType="md5")
Crypt and verfiy the entered password.
Auth_Container()
Constructor.
$activeUser
User that is currently selected from the storage container.
log($message, $level=AUTH_LOG_DEBUG)
Log a message to the Auth log.
supportsChallengeResponse()
Returns true if the container supports Challenge Response password authentication.
$_auth_obj
The Auth object this container is attached to.