mirror of
https://github.com/owncloudarchive/contacts.git
synced 2024-11-29 11:24:11 +01:00
it's not over yet
This commit is contained in:
parent
305fa564c4
commit
ea828cb93d
@ -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 ");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user