summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorC. Montero Luque <cmonteroluque@users.noreply.github.com>2016-04-14 11:14:19 -0400
committerC. Montero Luque <cmonteroluque@users.noreply.github.com>2016-04-14 11:14:19 -0400
commit5911ce530b003d46348f59e9280b610f684de85a (patch)
treefafa2185a97f8c939c2e16f09afd7200e34cce65 /apps/user_ldap
parentdba08f5fca3ae01dbfe83dc7bc8c0dec68505450 (diff)
parentc9587cea76fb1b5e3d8f9edbb60934994860cd51 (diff)
downloadnextcloud-server-5911ce530b003d46348f59e9280b610f684de85a.tar.gz
nextcloud-server-5911ce530b003d46348f59e9280b610f684de85a.zip
Merge pull request #23527 from owncloud/fix-21136
disable Paged Search when chunksize is set to 0, fixes #21136
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/configuration.php3
-rw-r--r--apps/user_ldap/lib/connection.php5
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() {