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);
__construct()
Constructor.
static _lookupId($a_user_str)
lookup id by login
Authentication against ILIAS database.
static toUsernameWithoutDomain($username)
Static function removes Microsoft domain name from username.
_getAuthMode($a_auth_mode, $a_db_handler='')
static _lookupAuthMode($a_usr_id)
lookup auth mode
supportsCaptchaVerification()
loginObserver($a_username, $a_auth)
Called from fetchData after successful login.
const AUTH_WRONG_LOGIN
Returned if container is unable to authenticate user/password pair.
static isPasswordModificationEnabled($a_authmode)
Check if password modification is enabled.