aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@owncloud.com>2014-09-30 17:00:25 +0200
committerArthur Schiwon <blizzz@owncloud.com>2014-09-30 17:00:25 +0200
commitf9e085b020e73b1cae350823b0d108b7b122cc56 (patch)
tree2eb8c13d6fd27b1dce66aa2ae002aadeba3d278a
parent2b9696efaea3029cfb20a6d9c931901e8aeaaef1 (diff)
downloadnextcloud-server-f9e085b020e73b1cae350823b0d108b7b122cc56.tar.gz
nextcloud-server-f9e085b020e73b1cae350823b0d108b7b122cc56.zip
init a new paged search on read operations to satisfy OpenLDAP
-rw-r--r--apps/user_ldap/lib/access.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php
index 50874ae7a15..68641b7a298 100644
--- a/apps/user_ldap/lib/access.php
+++ b/apps/user_ldap/lib/access.php
@@ -95,6 +95,9 @@ class Access extends LDAPUtility implements user\IUserTools {
//Cancel possibly running Paged Results operation, otherwise we run in
//LDAP protocol errors
$this->abandonPagedSearch();
+ // openLDAP requires that we init a new Paged Search. Not needed by AD,
+ // but does not hurt either.
+ $this->initPagedSearch($filter, array($dn), $attr, 1, 0);
$dn = $this->DNasBaseParameter($dn);
$rr = @$this->ldap->read($cr, $dn, $filter, array($attr));
if(!$this->ldap->isResource($rr)) {