24 include_once
'Auth/Container/MDB2.php';
46 $options[
'table'] = $ilClientIniFile->readVariable(
'auth',
'table');
47 $options[
'usernamecol'] = $ilClientIniFile->readVariable(
'auth',
'usercol');
48 $options[
'passwordcol'] = $ilClientIniFile->readVariable(
'auth',
'passcol');
52 if (isset(
$_POST[
'password']) && preg_match(
'/^[a-f0-9]{32,32}$/i',
$_POST[
'password']))
54 if ($ilIliasIniFile->readVariable(
'server',
'studip'))
71 $pos = strrpos($username,
'/');
72 $pos2 = strrpos($username,
'\\');
73 if ($pos ===
false || $pos < $pos2)
79 $username = substr($username, $pos + 1);
96 $GLOBALS[
'ilLog']->write(__METHOD__.
': auth id = ' . $auth_id);
112 $a_auth->status = AUTH_WRONG_LOGIN;
132 public function verifyPassword($raw, $encoded, $crypt_type =
'md5')
134 $this->log(__METHOD__ .
' called.', AUTH_LOG_DEBUG);
136 if(in_array($crypt_type,
array(
'none',
'')))
138 return parent::verifyPassword($raw, $encoded, $crypt_type);
141 require_once
'Services/User/classes/class.ilUserPasswordManager.php';
156 return parent::verifyPassword($raw, $encoded, $crypt_type);
__construct()
Constructor.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static _lookupId($a_user_str)
Lookup id by login.
Authentication against ILIAS database.
static _getAuthMode($a_auth_mode, $a_db_handler='')
static _loginExists($a_login, $a_user_id=0)
check if a login name already exists You may exclude a user from the check by giving his user id as 2...
static toUsernameWithoutDomain($username)
Static function removes Microsoft domain name from username.
if(!is_array($argv)) $options
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
Create styles array
The data for the language used.
static _lookupAuthMode($a_usr_id)
lookup auth mode
supportsCaptchaVerification()
loginObserver($a_username, $a_auth)
Called from fetchData after successful login.
static isPasswordModificationEnabled($a_authmode)
Check if password modification is enabled.
static getInstance()
Single method to reduce footprint (included files, created instances)