disable Paged Search when chunksize is set to 0, fixes #21136
This commit is contained in:
parent
765cff49fa
commit
c9587cea76
|
@ -28,6 +28,9 @@
|
||||||
|
|
||||||
namespace OCA\user_ldap\lib;
|
namespace OCA\user_ldap\lib;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @property int ldapPagingSize holds an integer
|
||||||
|
*/
|
||||||
class Configuration {
|
class Configuration {
|
||||||
|
|
||||||
protected $configPrefix = null;
|
protected $configPrefix = null;
|
||||||
|
|
|
@ -85,11 +85,12 @@ class Connection extends LDAPUtility {
|
||||||
if($memcache->isAvailable()) {
|
if($memcache->isAvailable()) {
|
||||||
$this->cache = $memcache->create();
|
$this->cache = $memcache->create();
|
||||||
}
|
}
|
||||||
$this->hasPagedResultSupport =
|
|
||||||
$this->ldap->hasPagedResultSupport();
|
|
||||||
$helper = new Helper();
|
$helper = new Helper();
|
||||||
$this->doNotValidate = !in_array($this->configPrefix,
|
$this->doNotValidate = !in_array($this->configPrefix,
|
||||||
$helper->getServerConfigurationPrefixes());
|
$helper->getServerConfigurationPrefixes());
|
||||||
|
$this->hasPagedResultSupport =
|
||||||
|
intval($this->configuration->ldapPagingSize) !== 0
|
||||||
|
|| $this->ldap->hasPagedResultSupport();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __destruct() {
|
public function __destruct() {
|
||||||
|
|
Loading…
Reference in New Issue