diff --git a/htdocs/checkpassword.php b/htdocs/checkpassword.php index 93ad77b..41c0c33 100644 --- a/htdocs/checkpassword.php +++ b/htdocs/checkpassword.php @@ -31,7 +31,7 @@ $result = $ldap_connection[1]; if ($use_checkpasswordhistory) { - $hashed_password_history = $ldapInstance->get_password_history_values($dn, "pwdHistory"); + $hashed_password_history = $ldapInstance->get_attribute_value($dn, "pwdHistory"); foreach ($hashed_password_history as $hashed_password) { preg_match("/(?<={).*(?=})/", $hashed_password, $algorithm); preg_match("/{(?<={).*/", $hashed_password, $password_hash);