Skip to content

Commit

Permalink
Merge pull request #59 from ltb-project/58-reset-at-next-connection-i…
Browse files Browse the repository at this point in the history
…s-not-correctly-evaluated-with-active-directory

Use integer value for pwdLastSet comparison
  • Loading branch information
coudot authored Dec 30, 2024
2 parents 871b2f3 + 73e7c3f commit 84b3294
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ltb/Directory/ActiveDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ public function resetAtNextConnection($ldap, $dn) : bool {
}

$pwdlastset = $entry[0]['pwdlastset'][0] ?? null;
if ( isset($pwdlastset) and $pwdlastset === 0) {
if ( isset($pwdlastset) and intval($pwdlastset) === 0) {
return true;
} else {
return false;
Expand Down

0 comments on commit 84b3294

Please sign in to comment.