diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index f92c08d01a9..fb6b57651ad 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -616,7 +616,6 @@ class auth_plugin_ldap extends auth_plugin_base { if ($user->firstaccess == 0) { $user->firstaccess = time(); } - require_once($CFG->dirroot.'/user/lib.php'); user_update_user($user, false); return AUTH_CONFIRM_OK; }