diff --git a/lib/plugins/authldap/auth.php b/lib/plugins/authldap/auth.php index 213e43f29f..e61a44343c 100644 --- a/lib/plugins/authldap/auth.php +++ b/lib/plugins/authldap/auth.php @@ -202,9 +202,9 @@ protected function fetchUserData($user, $inbind = false) $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;