25 $ilias = $DIC[
'ilias'];
29 if ($shibServerData->getLogin() !==
'' && $shibServerData->getLogin() !==
'0') {
32 $userObj = &$shibUser;
33 $newUser = $shibUser->isNew();
34 if ($shibUser->isNew()) {
35 $shibUser->createFields();
36 $shibUser->setPref(
'hits_per_page',
$ilSetting->get(
'hits_per_page'));
42 $ilias->getSetting(
'shib_data_conv') &&
43 $ilias->getSetting(
'shib_data_conv',
'') !==
'' &&
44 is_readable($ilias->getSetting(
'shib_data_conv'))
47 include($ilias->getSetting(
'shib_data_conv'));
51 $shibUser->saveAsNew();
52 $shibUser->updateOwner();
53 $shibUser->writePrefs();
57 $shibUser->updateFields();
61 $ilias->getSetting(
'shib_data_conv') &&
62 $ilias->getSetting(
'shib_data_conv') !==
'' &&
63 is_readable($ilias->getSetting(
'shib_data_conv'))
66 include($ilias->getSetting(
'shib_data_conv'));
77 if (!$newUser || !$settings->adminMustActivate()) {
80 } elseif ($settings->adminMustActivate()) {
85 $this->
getLogger()->info(
'Shibboleth authentication failed.');
const STATUS_AUTHENTICATION_FAILED
static doAssignments(int $a_usr_id, array $a_data)
static _lookupId($a_user_str)
handleAuthenticationFail(ilAuthStatus $status, string $a_reason)
Handle failed authentication.
Base class for authentication providers (ldap, apache, ...)
setStatus(int $a_status)
Set auth status.
doAuthentication(ilAuthStatus $status)
static updateAssignments(int $a_usr_id, array $a_data)
static buildInstance(shibServerData $shibServerData)
const STATUS_AUTHENTICATED
Shibboleth authentication provider.
setReason(string $a_reason)
Set reason.
setAuthenticatedUserId(int $a_id)
Auth status implementation.
Class ilShibbolethSettings.