[svn r13115] Check if extAuthSource is defined

skala
Yannick Warnier 19 years ago
parent 96dfb3bcea
commit e60b7faccc
  1. 14
      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'];

Loading…
Cancel
Save