Skip to content

Commit 741ca50

Browse files
committed
Update Ldap.php
1 parent 49fd000 commit 741ca50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Auth/Ldap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ public function whoami($searchBase, $searchAttributes)
841841
if (function_exists('ldap_exop_whoami')) {
842842
if (version_compare(phpversion(), '7', '<')) {
843843
/** @psalm-suppress TooManyArguments */
844-
if (ldap_exop_whoami($this->ldap, $authz_id) !== true) {
844+
if (ldap_exop_whoami($this->ldap, $authz_id) === false) {
845845
throw $this->makeException('LDAP whoami exop failure');
846846
}
847847
} else {

0 commit comments

Comments
 (0)