Skip to content

Commit

Permalink
Merge pull request #23527 from owncloud/fix-21136
Browse files Browse the repository at this point in the history
disable Paged Search when chunksize is set to 0, fixes #21136
  • Loading branch information
C. Montero Luque committed Apr 14, 2016
2 parents dba08f5 + c9587ce commit 5911ce5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions apps/user_ldap/lib/configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@

namespace OCA\user_ldap\lib;

/**
* @property int ldapPagingSize holds an integer
*/
class Configuration {

protected $configPrefix = null;
Expand Down
5 changes: 3 additions & 2 deletions apps/user_ldap/lib/connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,12 @@ public function __construct(ILDAPWrapper $ldap, $configPrefix = '', $configID =
if($memcache->isAvailable()) {
$this->cache = $memcache->create();
}
$this->hasPagedResultSupport =
$this->ldap->hasPagedResultSupport();
$helper = new Helper();
$this->doNotValidate = !in_array($this->configPrefix,
$helper->getServerConfigurationPrefixes());
$this->hasPagedResultSupport =
intval($this->configuration->ldapPagingSize) !== 0
|| $this->ldap->hasPagedResultSupport();
}

public function __destruct() {
Expand Down

0 comments on commit 5911ce5

Please sign in to comment.