ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
shib_login.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
12 // Load all the ILIAS stuff
13 require_once "include/inc.header.php";
14 
15 if (!$_SERVER['HTTP_SHIB_APPLICATION_ID'] && !$_SERVER['Shib-Application-ID']) {
16  $message = "This file must be protected by Shibboleth, otherwise you cannot use Shibboleth authentication! Consult the <a href=\"Services/AuthShibboleth/README.SHIBBOLETH.txt\">documentation</a> on how to configure Shibboleth authentication properly.";
17  $ilias->raiseError($message, $ilias->error_obj->WARNING);
18 }
19 
20 // Check if all the essential attributes are available
21 if (!$_SERVER[$ilias->getSetting('shib_login')] || !$_SERVER[$ilias->getSetting('shib_firstname')]
22  || !$_SERVER[$ilias->getSetting('shib_lastname')]
23  || !$_SERVER[$ilias->getSetting('shib_email')]
24 ) {
25  $message = "ILIAS needs at least the attributes '" . $ilias->getSetting('shib_login') . "', '"
26  . $ilias->getSetting('shib_firstname') . "', '" . $ilias->getSetting('shib_lastname')
27  . "' and '" . $ilias->getSetting('shib_email')
28  . "' to work properly !\n<br>Please consult the <a href=\"README.SHIBBOLETH.txt\">documentation</a> on how to configure Shibboleth authentication properly.";
29 
30  $ilias->raiseError($message, $ilias->error_obj->WARNING);
31 }
32 
33 include_once './Services/User/classes/class.ilUserUtil.php';
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static getStartingPointAsUrl()
Get current starting point setting as URL.
static redirect($a_script)
http redirect to other script