From f9e085b020e73b1cae350823b0d108b7b122cc56 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 30 Sep 2014 17:00:25 +0200 Subject: [PATCH] init a new paged search on read operations to satisfy OpenLDAP --- apps/user_ldap/lib/access.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/user_ldap/lib/access.php b/apps/user_ldap/lib/access.php index 50874ae7a1..68641b7a29 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)) {