33 include_once
'Auth/Auth.php';
34 include_once
'./Services/Authentication/classes/class.ilBaseAuthentication.php';
49 parent::__construct();
50 $this->__setMessageCode(
'Client');
55 $this->soap_check =
false;
60 if (!$this->getClient()) {
61 $this->__setMessage(
'No client given');
64 if (!$this->getUsername()) {
65 $this->__setMessage(
'No username given');
69 if (!$this->__buildDSN()) {
70 $this->__setMessage(
'Error building dsn/Wrong client Id?');
73 if (!$this->__setSessionSaveHandler()) {
79 if (!$this->__buildAuth()) {
83 $this->__setMessage(
'SOAP is not enabled in ILIAS administration for this client');
84 $this->__setMessageCode(
'Server');
92 if (!$this->auth->getAuth()) {
93 $this->__getAuthStatus();
98 $this->setSid(session_id());
112 include_once(
'./Services/User/classes/class.ilObjUser.php');
113 include_once(
'./Services/Administration/classes/class.ilSetting.php');
121 if (ilObjUser::hasUserToAcceptTermsOfService($login)) {
122 $this->__setMessage(
'User agreement no accepted.');
133 if (!$this->getClient()) {
134 $this->__setMessage(
'No client given');
137 if (!$this->getSid()) {
138 $this->__setMessage(
'No session id given');
142 if (!$this->__buildDSN()) {
143 $this->__setMessage(
'Error building dsn');
147 $this->__setMessage(
'Client disabled.');
151 if (!$this->__setSessionSaveHandler()) {
154 if (!$this->__buildAuth()) {
158 $this->__setMessage(
'SOAP is not enabled in ILIAS administration for this client');
159 $this->__setMessageCode(
'Server');
163 $this->auth->start();
164 if (!$this->auth->getAuth()) {
165 $this->__setMessage(
'Session not valid');
176 include_once
'./Services/Database/classes/MDB2/class.ilDB.php';
183 include_once
'./Services/Administration/classes/class.ilSetting.php';
185 return ($set->get(
"soap_user_administration") == 1);
196 if (is_object($this->ini) and $this->ini->readVariable(
'client',
'access')) {
__construct()
Constructor.
__checkAgreement($a_auth_mode)
Check if user agreement is accepted.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
static _checkExternalAuthAccount($a_auth, $a_account, $tryFallback=true)
check whether external account and authentication method matches with a user