From ce04d8f1608d7059dc6b97b1120645673b26a10b Mon Sep 17 00:00:00 2001 From: Abhishek Pai Date: Mon, 26 Aug 2024 15:20:08 +0200 Subject: [PATCH] #126: Fixing method call get_attribute_values. --- htdocs/checkpassword.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/checkpassword.php b/htdocs/checkpassword.php index 41c0c33..e472dd4 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_attribute_value($dn, "pwdHistory"); + $hashed_password_history = $ldapInstance->get_attribute_values($dn, "pwdHistory"); foreach ($hashed_password_history as $hashed_password) { preg_match("/(?<={).*(?=})/", $hashed_password, $algorithm); preg_match("/{(?<={).*/", $hashed_password, $password_hash);