From d349b0f0f8a1406d051bb39206deab8a8aff2b9e Mon Sep 17 00:00:00 2001 From: John Okely Date: Tue, 6 Jun 2017 10:50:01 +0800 Subject: [PATCH] MDL-58286 enrol_ldap: Pass connection to ldap_paged_results_supported Thanks to Bianco Veigel for the original patch. --- enrol/ldap/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/enrol/ldap/lib.php b/enrol/ldap/lib.php index aafc0e7ec42..e6f41406c03 100644 --- a/enrol/ldap/lib.php +++ b/enrol/ldap/lib.php @@ -328,7 +328,7 @@ class enrol_ldap_plugin extends enrol_plugin { return; } - $ldap_pagedresults = ldap_paged_results_supported($this->get_config('ldap_version')); + $ldap_pagedresults = ldap_paged_results_supported($this->get_config('ldap_version'), $this->ldapconnection); // we may need a lot of memory here core_php_time_limit::raise(); @@ -761,7 +761,7 @@ class enrol_ldap_plugin extends enrol_plugin { // Get all contexts and look for first matching user $ldap_contexts = explode(';', $ldap_contexts); - $ldap_pagedresults = ldap_paged_results_supported($this->get_config('ldap_version')); + $ldap_pagedresults = ldap_paged_results_supported($this->get_config('ldap_version'), $this->ldapconnection); foreach ($ldap_contexts as $context) { $context = trim($context); if (empty($context)) {