From 64a2cb202287092990959d66cd8f39690feb1d45 Mon Sep 17 00:00:00 2001 From: lapsa Date: Fri, 18 Mar 2005 09:15:00 +0000 Subject: [PATCH] Introduction to use shibboleth authentication module in Moodle. --- auth/shibboleth/README.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/auth/shibboleth/README.txt b/auth/shibboleth/README.txt index 609ca033f4b..894ae0bb43c 100644 --- a/auth/shibboleth/README.txt +++ b/auth/shibboleth/README.txt @@ -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 -------------------------------------------------------------------------------