Skip to content

Commit

Permalink
MDL-58286 enrol_ldap: Pass connection to ldap_paged_results_supported
Browse files Browse the repository at this point in the history
Thanks to Bianco Veigel for the original patch.
  • Loading branch information
John Okely committed Jul 5, 2017
1 parent 5a651b4 commit d349b0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions enrol/ldap/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public function sync_enrolments(progress_trace $trace, $onecourse = null) {
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();
Expand Down Expand Up @@ -761,7 +761,7 @@ protected function find_ext_enrolments($memberuid, $role) {

// 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)) {
Expand Down

0 comments on commit d349b0f

Please sign in to comment.