disable Paged Search when chunksize is set to 0, fixes #21136
This commit is contained in:
parent
765cff49fa
commit
c9587cea76
2 changed files with 6 additions and 2 deletions
|
@ -28,6 +28,9 @@
|
|||
|
||||
namespace OCA\user_ldap\lib;
|
||||
|
||||
/**
|
||||
* @property int ldapPagingSize holds an integer
|
||||
*/
|
||||
class Configuration {
|
||||
|
||||
protected $configPrefix = null;
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue