]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: know, wether server supports paged search
authorArthur Schiwon <blizzz@owncloud.com>
Fri, 26 Oct 2012 19:52:58 +0000 (21:52 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Fri, 26 Oct 2012 19:54:34 +0000 (21:54 +0200)
apps/user_ldap/lib/connection.php

index cc24ea62434753a9836fb67b70947e1e96b81309..a570b29b79312a3a5f40d2a7a4ae95787aacbf12 100644 (file)
@@ -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() {