diff --git a/module/VuFind/src/VuFind/Auth/LDAP.php b/module/VuFind/src/VuFind/Auth/LDAP.php index 482c91ab902805432567df6d22688385148604ac..b9434310af75000811eba588b0e436bb1b1bd847 100644 --- a/module/VuFind/src/VuFind/Auth/LDAP.php +++ b/module/VuFind/src/VuFind/Auth/LDAP.php @@ -178,8 +178,8 @@ class LDAP extends AbstractBase ); if ($ldapBind) { // If the bind was successful, we can look up the full user info: - $ldapSearch = ldap_search( - $ldapConnection, $this->getSetting('basedn'), $ldapFilter + $ldapSearch = ldap_read( + $ldapConnection, $info[0]['dn'], 'objectclass=*' ); $data = ldap_get_entries($ldapConnection, $ldapSearch); return $this->processLDAPUser($data);