diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2012-10-26 21:52:58 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2012-10-26 21:54:34 +0200 |
commit | fc446d0af4db2041b3ed75fb5fe397e775329008 (patch) | |
tree | 20a32fcf791c7a503de0c69b3d688d7cfe8ad025 | |
parent | 3f78a8190ff5403d03b5539f59d22f63674aaee6 (diff) | |
download | nextcloud-server-fc446d0af4db2041b3ed75fb5fe397e775329008.tar.gz nextcloud-server-fc446d0af4db2041b3ed75fb5fe397e775329008.zip |
LDAP: know, wether server supports paged search
-rw-r--r-- | apps/user_ldap/lib/connection.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/user_ldap/lib/connection.php b/apps/user_ldap/lib/connection.php index cc24ea62434..a570b29b793 100644 --- a/apps/user_ldap/lib/connection.php +++ b/apps/user_ldap/lib/connection.php @@ -56,11 +56,14 @@ class Connection { 'ldapUuidAttribute' => null, 'ldapOverrideUuidAttribute' => null, 'homeFolderNamingRule' => null, + 'hasPagedResultSupport' => false, ); public function __construct($configID = 'user_ldap') { $this->configID = $configID; $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() { |