move ldap debug statement

See https://forum.dokuwiki.org/d/22179-dokuwiki-and-openldap-login-failing-with-no-srch/4

This was probably the result of a messy merge.
This commit is contained in:
Andreas Gohr 2024-04-16 09:24:32 +02:00
parent 38a55fff91
commit 821c061a6c
1 changed files with 1 additions and 1 deletions

View File

@ -202,9 +202,9 @@ class auth_plugin_authldap extends AuthPlugin
$this->debug('LDAP Filter: ' . hsc($filter), 0, __LINE__, __FILE__);
$this->debug('LDAP user search: ' . hsc(ldap_error($this->con)), 0, __LINE__, __FILE__);
$this->debug('LDAP search at: ' . hsc($base . ' ' . $filter), 0, __LINE__, __FILE__);
$sr = $this->ldapSearch($this->con, $base, $filter, $this->getConf('userscope'), $this->getConf('attributes'));
$this->debug('LDAP user search: ' . hsc(ldap_error($this->con)), 0, __LINE__, __FILE__);
if ($sr === false) {
$this->debug('User ldap_search failed. Check configuration.', 0, __LINE__, __FILE__);
return false;