diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2015-12-17 12:29:55 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2016-03-23 19:47:31 +0100 |
commit | c9587cea76fb1b5e3d8f9edbb60934994860cd51 (patch) | |
tree | 9493a111e9ea01fbde8bba64b3533a1dee047409 | |
parent | 765cff49fab0cf293562c169061dfaf3b1bc76d4 (diff) | |
download | nextcloud-server-c9587cea76fb1b5e3d8f9edbb60934994860cd51.tar.gz nextcloud-server-c9587cea76fb1b5e3d8f9edbb60934994860cd51.zip |
disable Paged Search when chunksize is set to 0, fixes #21136
-rw-r--r-- | apps/user_ldap/lib/configuration.php | 3 | ||||
-rw-r--r-- | apps/user_ldap/lib/connection.php | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/configuration.php b/apps/user_ldap/lib/configuration.php index daec2bed13a..418a2bfc015 100644 --- a/apps/user_ldap/lib/configuration.php +++ b/apps/user_ldap/lib/configuration.php @@ -28,6 +28,9 @@ namespace OCA\user_ldap\lib; +/** + * @property int ldapPagingSize holds an integer + */ class Configuration { protected $configPrefix = null; diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php index c485ac74395..53c9b3790a7 100644 --- a/apps/user_ldap/lib/connection.php +++ b/apps/user_ldap/lib/connection.php @@ -85,11 +85,12 @@ class Connection extends LDAPUtility { 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() { |