diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index cd36ea6bd1b..f2968dc1057 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -1797,6 +1797,9 @@ class auth_plugin_ldap extends auth_plugin_base { */ function loginpage_hook() { global $CFG, $SESSION; + + // HTTPS is potentially required + httpsrequired(); if (($_SERVER['REQUEST_METHOD'] === 'GET' // Only on initial GET of loginpage || ($_SERVER['REQUEST_METHOD'] === 'POST'