From fc446d0af4db2041b3ed75fb5fe397e775329008 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 26 Oct 2012 21:52:58 +0200 Subject: LDAP: know, wether server supports paged search --- apps/user_ldap/lib/connection.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps') 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() { -- cgit v1.2.3