mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
Introduction to use shibboleth authentication module in Moodle.
This commit is contained in:
parent
28902d99c8
commit
64a2cb2022
1 changed files with 15 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue