24 require_once(
'Auth/Auth.php');
25 require_once(
'./Services/AuthShibboleth/classes/class.ilShibbolethRoleAssignmentRules.php');
26 require_once(
'include/Unicode/UtfNormal.php');
27 require_once(
'./Services/AuthShibboleth/classes/class.ilShibbolethPluginWrapper.php');
28 require_once(
'./Services/AuthShibboleth/classes/Config/class.shibConfig.php');
29 require_once(
'./Services/AuthShibboleth/classes/ServerData/class.shibServerData.php');
30 require_once(
'./Services/AuthShibboleth/classes/User/class.shibUser.php');
48 public function __construct($authParams, $updateUserData =
false) {
49 if ($authParams[
'sessionName'] !=
'') {
50 parent::Auth(
'', array(
'sessionName' => $authParams[
'sessionName'] ));
54 $this->updateUserData = $updateUserData;
55 if (! empty($authParams[
'sessionName'])) {
57 unset($authParams[
'sessionName']);
79 if ($shibServerData->getLogin()) {
82 $userObj =& $shibUser;
83 $newUser = $shibUser->isNew();
84 if ($shibUser->isNew()) {
85 $shibUser->createFields();
86 $shibUser->setPref(
'hits_per_page', $ilSetting->get(
'hits_per_page'));
91 if ($ilias->getSetting(
'shib_data_conv') AND $ilias->getSetting(
'shib_data_conv') !=
''
92 AND is_readable($ilias->getSetting(
'shib_data_conv'))
94 include($ilias->getSetting(
'shib_data_conv'));
98 $shibUser->updateOwner();
99 $shibUser->saveAsNew();
100 $shibUser->writePrefs();
104 $shibUser->updateFields();
107 if ($ilias->getSetting(
'shib_data_conv') AND $ilias->getSetting(
'shib_data_conv') !=
''
108 AND is_readable($ilias->getSetting(
'shib_data_conv'))
110 include($ilias->getSetting(
'shib_data_conv'));
118 $this->
setAuth($shibUser->getLogin(), $shibUser);
120 if (
$_GET[
'target'] !=
'') {