From e60b7faccc9b01ce5fc86fb89a8ee3d086c2d80a Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 20 Sep 2007 06:37:46 +0200 Subject: [PATCH] [svn r13115] Check if extAuthSource is defined --- main/inc/local.inc.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/main/inc/local.inc.php b/main/inc/local.inc.php index a815e7bd1b..4a17428e9e 100644 --- a/main/inc/local.inc.php +++ b/main/inc/local.inc.php @@ -277,7 +277,7 @@ else //do nothing (code may be added later) } } - else // no standard Dokeos login - try external authentification + elseif(!empty($extAuthSource[$uData['auth_source']]['login'])) { /* * Process external authentication @@ -285,13 +285,17 @@ else */ $loginFailed = true; // Default initialisation. It could // change after the external authentication - $key = $uData['auth_source']; - - /* >>>>>>>>>>>>>>>> External authentication modules <<<<<<<<<<<<<<<< */ + $key = $uData['auth_source']; //'ldap','shibboleth'... + /* >>>>>>>> External authentication modules <<<<<<<<< */ // see configuration.php to define these include_once($extAuthSource[$key]['login']); - /* >>>>>>>>>>>>>>>> External authentication modules <<<<<<<<<<<<<<<<<< */ + /* >>>>>>>> External authentication modules <<<<<<<<< */ + } + else // no standard Dokeos login - try external authentification + { + //huh... nothing to do... we shouldn't get here } + if(!empty($_SESSION['request_uri'])) { $req = $_SESSION['request_uri'];