Skip to content

Commit

Permalink
ltb-project#126: Changed method from get_password_history_values to g…
Browse files Browse the repository at this point in the history
…et_attributevalue
  • Loading branch information
abpai94 committed Aug 26, 2024
1 parent 0578793 commit e377dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/checkpassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e377dda

Please sign in to comment.