LDAP: know, wether server supports paged search
This commit is contained in:
parent
3f78a8190f
commit
fc446d0af4
|
@ -56,11 +56,14 @@ class Connection {
|
||||||
'ldapUuidAttribute' => null,
|
'ldapUuidAttribute' => null,
|
||||||
'ldapOverrideUuidAttribute' => null,
|
'ldapOverrideUuidAttribute' => null,
|
||||||
'homeFolderNamingRule' => null,
|
'homeFolderNamingRule' => null,
|
||||||
|
'hasPagedResultSupport' => false,
|
||||||
);
|
);
|
||||||
|
|
||||||
public function __construct($configID = 'user_ldap') {
|
public function __construct($configID = 'user_ldap') {
|
||||||
$this->configID = $configID;
|
$this->configID = $configID;
|
||||||
$this->cache = \OC_Cache::getGlobalCache();
|
$this->cache = \OC_Cache::getGlobalCache();
|
||||||
|
$this->config['hasPagedResultSupport'] = (function_exists('ldap_control_paged_result') && function_exists('ldap_control_paged_result_response'));
|
||||||
|
\OCP\Util::writeLog('user_ldap', 'PHP supports paged results? '.print_r($this->config['hasPagedResultSupport'], true), \OCP\Util::INFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __destruct() {
|
public function __destruct() {
|
||||||
|
|
Loading…
Reference in New Issue