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);
132 public function verifyPassword($raw, $encoded, $crypt_type =
'md5')
136 if(in_array($crypt_type, array(
'none',
'')))
141 require_once
'Services/User/classes/class.ilUserPasswordManager.php';
142 $crypt_type = ilUserPasswordManager::getInstance()->getEncoderName();
144 if(ilUserPasswordManager::getInstance()->isEncodingTypeSupported($crypt_type))
152 return ilUserPasswordManager::getInstance()->verifyPassword($user, $raw);