Skip to content

Commit

Permalink
Fixed issue #17535: Error when logging in with LDAP
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Sep 7, 2021
1 parent 6cd5cb0 commit 45033c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/core/plugins/AuthLDAP/AuthLDAP.php
Expand Up @@ -326,7 +326,7 @@ private function createConnection()
}

// Try to connect
if (str_pos($ldapserver, 'ldaps://') === false && str_pos($ldapserver, 'ldap://') === false) {
if (strpos($ldapserver, 'ldaps://') === false && strpos($ldapserver, 'ldap://') === false) {
$ldapserver = 'ldap://' . $ldapserver;
}
$ldapconn = ldap_connect($ldapserver . ':' . (int) $ldapport);
Expand Down

0 comments on commit 45033c2

Please sign in to comment.