1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2024-12-01 13:24:10 +01:00

it's not over yet

This commit is contained in:
Nicolas Mora 2013-06-02 15:50:57 -04:00
parent 305fa564c4
commit ea828cb93d

View File

@ -201,10 +201,14 @@ class Ldap extends AbstractBackend {
}
error_log(__METHOD__." - search what $ldapbasedn, $bindsearch ");
$ldap_results = @ldap_search ($this->ldapConnection, $ldapbasedn, $bindsearch, $entries, $start, max(($start+$num), LDAP_OPT_SIZELIMIT));
$ldap_results = @ldap_search ($this->ldapConnection, $ldapbasedn, $bindsearch, $entries);
if ($ldap_results) {
$entries = ldap_get_entries ($this->ldapConnection, $ldap_results);
return $entries[0];
if ($entries['count'] > 0) {
return $entries[0];
} else {
return false;
}
} else {
error_log(__METHOD__." - search failed $ldapbasedn , $bindsearch ");
}