Skip to content

Commit

Permalink
Fixed issue #18413: Cannot authenticate with LDAP when using PHP 8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis1993 committed Oct 13, 2022
1 parent 8643264 commit a26b5a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/core/plugins/AuthLDAP/AuthLDAP.php
Expand Up @@ -480,7 +480,7 @@ public function newUserSession()

// Try to connect
$ldapconn = $this->createConnection();
if (!is_resource($ldapconn)) {
if ($ldapconn === false) {
$this->setAuthFailure($ldapconn['errorCode'], gT($ldapconn['errorMessage']));
return;
}
Expand Down

0 comments on commit a26b5a8

Please sign in to comment.