MDL-40613 auth_ldap: include necessary file for saving profile fields

This commit is contained in:
Mark Nelson 2017-12-04 15:19:30 +08:00
parent 2c977ceb29
commit 220ca688c1

View file

@ -668,6 +668,8 @@ class auth_plugin_ldap extends auth_plugin_base {
function sync_users($do_updates=true) { function sync_users($do_updates=true) {
global $CFG, $DB; global $CFG, $DB;
require_once($CFG->dirroot . '/user/profile/lib.php');
print_string('connectingldap', 'auth_ldap'); print_string('connectingldap', 'auth_ldap');
$ldapconnection = $this->ldap_connect(); $ldapconnection = $this->ldap_connect();