5 include_once
'./Services/Authentication/classes/Provider/class.ilAuthProvider.php';
6 include_once
'./Services/Authentication/interfaces/interface.ilAuthProviderInterface.php';
7 include_once
'./Services/Authentication/interfaces/interface.ilAuthProviderAccountMigrationInterface.php';
10 require_once(
'./Services/AuthShibboleth/classes/class.ilShibbolethRoleAssignmentRules.php');
11 require_once(
'include/Unicode/UtfNormal.php');
12 require_once(
'./Services/AuthShibboleth/classes/class.ilShibbolethPluginWrapper.php');
13 require_once(
'./Services/AuthShibboleth/classes/Config/class.shibConfig.php');
14 require_once(
'./Services/AuthShibboleth/classes/ServerData/class.shibServerData.php');
15 require_once(
'./Services/AuthShibboleth/classes/User/class.shibUser.php');
32 parent::__construct($credentials);
42 $ilias = $DIC[
'ilias'];
48 if ($shibServerData->getLogin()) {
51 $userObj = &$shibUser;
52 $newUser = $shibUser->isNew();
53 if ($shibUser->isNew()) {
54 $shibUser->createFields();
55 $shibUser->setPref(
'hits_per_page',
$ilSetting->get(
'hits_per_page'));
60 if ($ilias->getSetting(
'shib_data_conv')
and $ilias->getSetting(
'shib_data_conv') !=
'' 61 and is_readable($ilias->getSetting(
'shib_data_conv'))
63 include($ilias->getSetting(
'shib_data_conv'));
67 $shibUser->updateOwner();
68 $shibUser->saveAsNew();
69 $shibUser->writePrefs();
73 $shibUser->updateFields();
76 if ($ilias->getSetting(
'shib_data_conv')
and $ilias->getSetting(
'shib_data_conv') !=
'' 77 and is_readable($ilias->getSetting(
'shib_data_conv'))
79 include($ilias->getSetting(
'shib_data_conv'));
89 if (($newUser && !$c->isActivateNew()) || !$newUser) {
92 } elseif ($newUser && $c->isActivateNew()) {
97 $this->
getLogger()->info(
'Shibboleth authentication failed.');
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Interface of auth credentials.
const STATUS_AUTHENTICATION_FAILED
__construct(\ilAuthCredentials $credentials)
Constructor.
static _lookupId($a_user_str)
Lookup id by login.
doAuthentication(\ilAuthStatus $status)
Do apache auth.
setAuthenticatedUserId($a_id)
Base class for authentication providers (radius, ldap, apache, ...)
Standard interface for auth provider implementations.
setStatus($a_status)
Set auth status.
static doAssignments($a_usr_id, $a_data)
static buildInstance(shibServerData $shibServerData)
setReason($a_reason)
Set reason.
const STATUS_AUTHENTICATED
Shibboleth authentication provider.
handleAuthenticationFail(ilAuthStatus $status, $a_reason)
Handle failed authentication.
static updateAssignments($a_usr_id, $a_data)
Auth status implementation.