init a new paged search on read operations to satisfy OpenLDAP

This commit is contained in:
Arthur Schiwon 2014-09-30 17:00:25 +02:00
parent 2b9696efae
commit f9e085b020
1 changed files with 3 additions and 0 deletions

View File

@ -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)) {