Skip to content

Commit 821c061

Browse files
committed
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.
1 parent 38a55ff commit 821c061

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/authldap/auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,9 @@ protected function fetchUserData($user, $inbind = false)
202202

203203
$this->debug('LDAP Filter: ' . hsc($filter), 0, __LINE__, __FILE__);
204204

205-
$this->debug('LDAP user search: ' . hsc(ldap_error($this->con)), 0, __LINE__, __FILE__);
206205
$this->debug('LDAP search at: ' . hsc($base . ' ' . $filter), 0, __LINE__, __FILE__);
207206
$sr = $this->ldapSearch($this->con, $base, $filter, $this->getConf('userscope'), $this->getConf('attributes'));
207+
$this->debug('LDAP user search: ' . hsc(ldap_error($this->con)), 0, __LINE__, __FILE__);
208208
if ($sr === false) {
209209
$this->debug('User ldap_search failed. Check configuration.', 0, __LINE__, __FILE__);
210210
return false;

0 commit comments

Comments
 (0)