mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Introduction to use shibboleth authentication module in Moodle.
This commit is contained in:
parent
28902d99c8
commit
64a2cb2022
@ -43,6 +43,21 @@ ShibRequireSession On
|
||||
require valid-user
|
||||
|
||||
|
||||
NEW! Modifications to login/index.php
|
||||
-------------------------------------------------------------------------------
|
||||
Moodle checks if user theres a shibboleth authenticated session alive. If
|
||||
username attribute is found, user is considered authenticated.
|
||||
|
||||
Add code after line 31:
|
||||
|
||||
if ($_SERVER[$CFG->shib_user_attribute]) {
|
||||
/// Log in automatically if user is has been shibboleth authenticated
|
||||
$frm->username = $_SERVER[$CFG->shib_user_attribute];
|
||||
$frm->password = "guest";
|
||||
} else {
|
||||
$frm = data_submitted();
|
||||
}
|
||||
|
||||
|
||||
MOODLE Authentication options
|
||||
-------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user