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 include_once
"Services/Context/classes/class.ilContext.php";
54 if (isset(
$_POST[
'password']) && (preg_match(
'/^[a-f0-9]{32,32}$/i',
$_POST[
'password']) || preg_match(
'/\$2[aby]\$\d{2}\$.{53}/i',
$_POST[
'password'])))
56 if ($ilIliasIniFile->readVariable(
'server',
'studip'))
74 $pos = strrpos($username,
'/');
75 $pos2 = strrpos($username,
'\\');
76 if ($pos ===
false || $pos < $pos2)
82 $username = substr($username, $pos + 1);
93 function fetchData($username, $password, $isChallengeResponse =
false)
101 $local_passwords_allowed =
false;
106 $local_passwords_allowed =
true;
111 $local_passwords_allowed =
true;
114 if($local_passwords_allowed)
116 return parent::fetchData($username, $password, $isChallengeResponse);
137 public function verifyPassword($raw, $encoded, $crypt_type =
'md5')
141 if(in_array($crypt_type, array(
'none',
'')))
143 return parent::verifyPassword($raw, $encoded, $crypt_type);
146 require_once
'Services/User/classes/class.ilUserPasswordManager.php';
161 return parent::verifyPassword($raw, $encoded, $crypt_type);
__construct()
Constructor.
const AUTH_LOG_DEBUG
Auth Log level - DEBUG.
static _lookupId($a_user_str)
Lookup id by login.
Authentication against ILIAS database.
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.
fetchData($username, $password, $isChallengeResponse=false)
Check for local password in case of auth modes, which allow local authentication. ...
getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
_getAuthMode($a_auth_mode, $a_db_handler='')
verifyPassword($password1, $password2, $cryptType="md5")
Crypt and verfiy the entered password.
static _lookupAuthMode($a_usr_id)
lookup auth mode
supportsCaptchaVerification()
log($message, $level=AUTH_LOG_DEBUG)
Log a message to the Auth log.
static getLogger($a_component_id)
Get component logger.
static getType()
Get context type.
static isPasswordModificationEnabled($a_authmode)
Check if password modification is enabled.
static getInstance()
Single method to reduce footprint (included files, created instances)