mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Merge branch 'MDL-36316-master' of git://github.com/danpoltawski/moodle
This commit is contained in:
commit
cf13da65e1
13 changed files with 142 additions and 73 deletions
|
@ -1645,7 +1645,7 @@ class auth_plugin_ldap extends auth_plugin_base {
|
|||
// Now start the whole NTLM machinery.
|
||||
if($this->config->ntlmsso_ie_fastpath == AUTH_NTLM_FASTPATH_YESATTEMPT ||
|
||||
$this->config->ntlmsso_ie_fastpath == AUTH_NTLM_FASTPATH_YESFORM) {
|
||||
if (core_useragent::check_ie_version()) {
|
||||
if (core_useragent::is_ie()) {
|
||||
$sesskey = sesskey();
|
||||
redirect($CFG->wwwroot.'/auth/ldap/ntlmsso_magic.php?sesskey='.$sesskey);
|
||||
} else if ($this->config->ntlmsso_ie_fastpath == AUTH_NTLM_FASTPATH_YESFORM) {
|
||||
|
|
|
@ -28,7 +28,7 @@ $file = $CFG->dirroot.'/pix/spacer.gif';
|
|||
|
||||
if ($authplugin->ntlmsso_magic($sesskey) && file_exists($file)) {
|
||||
if (!empty($authplugin->config->ntlmsso_ie_fastpath)) {
|
||||
if (core_useragent::check_ie_version()) {
|
||||
if (core_useragent::is_ie()) {
|
||||
// $PAGE->https_required() up above takes care of what $CFG->httpswwwroot should be.
|
||||
redirect($CFG->httpswwwroot.'/auth/ldap/ntlmsso_finish.php');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue