ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilAuthUtils.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
5
6// define auth modes
7define("AUTH_LOCAL", 1);
8define("AUTH_LDAP", 2);
9define("AUTH_RADIUS", 3);
10define("AUTH_SCRIPT", 4);
11define("AUTH_SHIBBOLETH", 5);
12define("AUTH_CAS", 6);
13define("AUTH_SOAP", 7);
14// BEGIN WebDAV: Add support for HTTP authentication
15define("AUTH_HTTP", 8);
16// END WebDAV: Add support for HTTP authentication
17define("AUTH_ECS", 9);
18
19define("AUTH_APACHE", 11);
20define("AUTH_SAML", 12);
21
22define("AUTH_INACTIVE", 18);
23
24define('AUTH_MULTIPLE', 20);
25
26define('AUTH_SESSION', 21);
27
28define('AUTH_PROVIDER_LTI', 22);
29
30define('AUTH_SOAP_NO_ILIAS_USER', -100);
31define('AUTH_LDAP_NO_ILIAS_USER', -200);
32define('AUTH_RADIUS_NO_ILIAS_USER', -300);
33
34// apache auhtentication failed...
35// maybe no (valid) certificate or
36// username could not be extracted
37define('AUTH_APACHE_FAILED', -500);
38define('AUTH_SAML_FAILED', -501);
39
40define('AUTH_MODE_INACTIVE', -1000);
41
42// an external user cannot be found in ilias, but his email address
43// matches one or more ILIAS users
44define('AUTH_SOAP_NO_ILIAS_USER_BUT_EMAIL', -101);
45define('AUTH_CAS_NO_ILIAS_USER', -90);
46
47// ilUser validation (no login)
48define('AUTH_USER_WRONG_IP', -600);
49define('AUTH_USER_INACTIVE', -601);
50define('AUTH_USER_TIME_LIMIT_EXCEEDED', -602);
51define('AUTH_USER_SIMULTANEOUS_LOGIN', -603);
52define('AUTH_CAPTCHA_INVALID', -604);
53
54
55include_once './Services/Authentication/classes/class.ilAuthFactory.php';
56require_once('Services/Authentication/classes/class.ilSessionControl.php');
57
58
67{
68 const LOCAL_PWV_FULL = 1;
69 const LOCAL_PWV_NO = 2;
70 const LOCAL_PWV_USER = 3;
71
72
76 public static function initSession()
77 {
78 }
79
83 public static function isAuthenticationForced()
84 {
85 if (isset($_GET['ecs_hash']) or isset($_GET['ecs_hash_url'])) {
86 return true;
87 }
88 return false;
89 }
90
91 public static function handleForcedAuthentication()
92 {
93 if (isset($_GET['ecs_hash']) or isset($_GET['ecs_hash_url'])) {
94 include_once './Services/Authentication/classes/Frontend/class.ilAuthFrontendCredentials.php';
95 $credentials = new ilAuthFrontendCredentials();
96 $credentials->setUsername($_GET['ecs_login']);
97 $credentials->setAuthMode(AUTH_ECS);
98
99 include_once './Services/Authentication/classes/Provider/class.ilAuthProviderFactory.php';
100 $provider_factory = new ilAuthProviderFactory();
101 $providers = $provider_factory->getProviders($credentials);
102
103 include_once './Services/Authentication/classes/class.ilAuthStatus.php';
104 $status = ilAuthStatus::getInstance();
105
106 include_once './Services/Authentication/classes/Frontend/class.ilAuthFrontendFactory.php';
107 $frontend_factory = new ilAuthFrontendFactory();
108 $frontend_factory->setContext(ilAuthFrontendFactory::CONTEXT_STANDARD_FORM);
109 $frontend = $frontend_factory->getFrontend(
110 $GLOBALS['DIC']['ilAuthSession'],
111 $status,
112 $credentials,
113 $providers
114 );
115
116 $frontend->authenticate();
117
118 switch ($status->getStatus()) {
120 return;
121
124 return;
125 }
126 }
127 }
128
129
130
131 public static function _getAuthModeOfUser($a_username, $a_password, $a_db_handler = '')
132 {
133 global $ilDB;
134
135 if (isset($_GET['ecs_hash']) or isset($_GET['ecs_hash_url'])) {
137 return AUTH_ECS;
138 }
139 if (isset($_POST['auth_mode'])) {
140 // begin-patch ldap_multiple
141 return $_POST['auth_mode'];
142 // end-patch ldap_multiple
143 }
144
145 include_once('./Services/Authentication/classes/class.ilAuthModeDetermination.php');
147
148 if (!$det->isManualSelection() and $det->getCountActiveAuthModes() > 1) {
149 ilLoggerFactory::getLogger('auth')->debug('Using AUTH_MULTIPLE');
150 return AUTH_MULTIPLE;
151 }
152
153
154 $db =&$ilDB;
155
156 if ($a_db_handler != '') {
157 $db =&$a_db_handler;
158 }
159
160 // Is it really necessary to check the auth mode with password ?
161 // Changed: smeyer
162 $q = "SELECT auth_mode FROM usr_data WHERE " .
163 "login = " . $ilDB->quote($a_username);
164 //"passwd = ".$ilDB->quote(md5($a_password))."";
165
166
167 $r = $db->query($q);
169 //echo "+".$row->auth_mode."+";
170
171
172 $auth_mode = self::_getAuthMode($row->auth_mode, $db);
173
174 return in_array($auth_mode, self::_getActiveAuthModes()) ? $auth_mode : AUTH_INACTIVE;
175 }
176
177 public static function _getAuthMode($a_auth_mode, $a_db_handler = '')
178 {
179 global $ilDB, $ilSetting;
180
181 $db =&$ilDB;
182
183 if ($a_db_handler != '') {
184 $db =&$a_db_handler;
185 }
186
187 // begin-patch ldap_multiple
188 if (strpos($a_auth_mode, '_') !== false) {
189 $auth_arr = explode('_', $a_auth_mode);
190 $auth_switch = $auth_arr[0];
191 } else {
192 $auth_switch = $a_auth_mode;
193 }
194 switch ($auth_switch) {
195 case "local":
196 return AUTH_LOCAL;
197 break;
198
199 case "ldap":
200 // begin-patch ldap_multiple
201 include_once './Services/LDAP/classes/class.ilLDAPServer.php';
202 return ilLDAPServer::getKeyByAuthMode($a_auth_mode);
203 // end-patch ldap_multiple
204
205 case 'lti':
206 include_once './Services/LTI/classes/InternalProvider/class.ilAuthProviderLTI.php';
207 return ilAuthProviderLTI::getKeyByAuthMode($a_auth_mode);
208
209 case "radius":
210 return AUTH_RADIUS;
211 break;
212
213 case "script":
214 return AUTH_SCRIPT;
215 break;
216
217 case "shibboleth":
218 return AUTH_SHIBBOLETH;
219 break;
220
221 case 'saml':
222 require_once 'Services/Saml/classes/class.ilSamlIdp.php';
223 return ilSamlIdp::getKeyByAuthMode($a_auth_mode);
224
225 case "cas":
226 return AUTH_CAS;
227 break;
228
229 case "soap":
230 return AUTH_SOAP;
231 break;
232
233 case 'ecs':
234 return AUTH_ECS;
235
236 case 'apache':
237 return AUTH_APACHE;
238
239 default:
240 return $ilSetting->get("auth_mode");
241 break;
242 }
243 }
244
245 public static function _getAuthModeName($a_auth_key)
246 {
247 global $ilias;
248
249 // begin-patch ldap_multiple
250 switch ((int) $a_auth_key) {
251 case AUTH_LOCAL:
252 return "local";
253 break;
254
255 case AUTH_LDAP:
256 // begin-patch ldap_multiple
257 include_once './Services/LDAP/classes/class.ilLDAPServer.php';
258 return ilLDAPServer::getAuthModeByKey($a_auth_key);
259 // end-patch ldap_multiple
260
262 include_once './Services/LTI/classes/InternalProvider/class.ilAuthProviderLTI.php';
263 return ilAuthProviderLTI::getAuthModeByKey($a_auth_key);
264
265 case AUTH_RADIUS:
266 return "radius";
267 break;
268
269 case AUTH_CAS:
270 return "cas";
271 break;
272
273 case AUTH_SCRIPT:
274 return "script";
275 break;
276
277 case AUTH_SHIBBOLETH:
278 return "shibboleth";
279 break;
280
281 case AUTH_SAML:
282 require_once 'Services/Saml/classes/class.ilSamlIdp.php';
283 return ilSamlIdp::getAuthModeByKey($a_auth_key);
284
285 case AUTH_SOAP:
286 return "soap";
287 break;
288
289 case AUTH_ECS:
290 return 'ecs';
291
292 case AUTH_APACHE:
293 return 'apache';
294
296 return "lti";
297 break;
298
299 default:
300 return "default";
301 break;
302 }
303 }
304
305 public static function _getActiveAuthModes()
306 {
307 global $ilias,$ilSetting;
308
309 $modes = array(
310 'default' => $ilSetting->get("auth_mode"),
311 'local' => AUTH_LOCAL
312 );
313 include_once('Services/LDAP/classes/class.ilLDAPServer.php');
314 // begin-patch ldap_multiple
315 foreach (ilLDAPServer::_getActiveServerList() as $sid) {
316 $modes['ldap_' . $sid] = (AUTH_LDAP . '_' . $sid);
317 }
318
319 include_once './Services/LTI/classes/InternalProvider/class.ilAuthProviderLTI.php';
320 foreach (ilAuthProviderLTI::getAuthModes() as $sid) {
321 $modes['lti_' . $sid] = (AUTH_PROVIDER_LTI . '_' . $sid);
322 }
323
324 // end-patch ldap_multiple
325 if ($ilSetting->get("radius_active")) {
326 $modes['radius'] = AUTH_RADIUS;
327 }
328 if ($ilSetting->get("shib_active")) {
329 $modes['shibboleth'] = AUTH_SHIBBOLETH;
330 }
331 if ($ilSetting->get("script_active")) {
332 $modes['script'] = AUTH_SCRIPT;
333 }
334 if ($ilSetting->get("cas_active")) {
335 $modes['cas'] = AUTH_CAS;
336 }
337 if ($ilSetting->get("soap_auth_active")) {
338 $modes['soap'] = AUTH_SOAP;
339 }
340 if ($ilSetting->get("apache_active")) {
341 $modes['apache'] = AUTH_APACHE;
342 }
343
344 include_once './Services/WebServices/ECS/classes/class.ilECSServerSettings.php';
345 if (ilECSServerSettings::getInstance()->activeServerExists()) {
346 $modes['ecs'] = AUTH_ECS;
347 }
348
349 require_once 'Services/Saml/classes/class.ilSamlIdp.php';
350 foreach (ilSamlIdp::getActiveIdpList() as $idp) {
351 $modes['saml_' . $idp->getIdpId()] = AUTH_SAML . '_' . $idp->getIdpId();
352 }
353
354 // begin-path auth_plugin
355 foreach (self::getAuthPlugins() as $pl) {
356 foreach ($pl->getAuthIds() as $auth_id) {
357 if ($pl->isAuthActive($auth_id)) {
358 $modes[$pl->getAuthName($auth_id)] = $auth_id;
359 }
360 }
361 }
362 // end-path auth_plugin
363 return $modes;
364 }
365
366 public static function _getAllAuthModes()
367 {
368 $modes = array(
370 AUTH_LDAP,
372 AUTH_SAML,
373 AUTH_CAS,
374 AUTH_SOAP,
376 AUTH_ECS,
379 );
380 $ret = array();
381 foreach ($modes as $mode) {
382 if ($mode == AUTH_PROVIDER_LTI) {
383 include_once './Services/LTI/classes/InternalProvider/class.ilAuthProviderLTI.php';
384 foreach (ilAuthProviderLTI::getAuthModes() as $sid) {
385 $id = AUTH_PROVIDER_LTI . '_' . $sid;
387 }
388 continue;
389 }
390
391 // multi ldap implementation
392 if ($mode == AUTH_LDAP) {
393 foreach (ilLDAPServer::_getServerList() as $ldap_id) {
394 $id = AUTH_LDAP . '_' . $ldap_id;
396 }
397 continue;
398 } elseif ($mode == AUTH_SAML) {
399 require_once 'Services/Saml/classes/class.ilSamlIdp.php';
400 foreach (ilSamlIdp::getAllIdps() as $idp) {
401 $id = AUTH_SAML . '_' . $idp->getIdpId();
403 }
404 continue;
405 }
406 $ret[$mode] = ilAuthUtils::_getAuthModeName($mode);
407 }
408 return $ret;
409 }
410
415 public static function _generateLogin($a_login)
416 {
417 global $ilDB;
418
419 // Check if username already exists
420 $found = false;
421 $postfix = 0;
422 $c_login = $a_login;
423 while (!$found) {
424 $r = $ilDB->query("SELECT login FROM usr_data WHERE login = " .
425 $ilDB->quote($c_login));
426 if ($r->numRows() > 0) {
427 $postfix++;
428 $c_login = $a_login . $postfix;
429 } else {
430 $found = true;
431 }
432 }
433
434 return $c_login;
435 }
436
437 public static function _hasMultipleAuthenticationMethods()
438 {
439 include_once('Services/Radius/classes/class.ilRadiusSettings.php');
440
441 $rad_settings = ilRadiusSettings::_getInstance();
442 if ($rad_settings->isActive()) {
443 return true;
444 }
445 include_once('Services/LDAP/classes/class.ilLDAPServer.php');
446
448 return true;
449 }
450
451 global $ilSetting;
452
453 if ($ilSetting->get('apache_active')) {
454 return true;
455 }
456
457 // begin-patch auth_plugin
458 foreach (ilAuthUtils::getAuthPlugins() as $pl) {
459 foreach ($pl->getAuthIds() as $auth_id) {
460 if ($pl->getMultipleAuthModeOptions($auth_id)) {
461 return true;
462 }
463 }
464 }
465 // end-patch auth_plugin
466
467
468 return false;
469 }
470
471 public static function _getMultipleAuthModeOptions($lng)
472 {
473 global $ilSetting;
474
475 // in the moment only ldap is activated as additional authentication method
476 include_once('Services/LDAP/classes/class.ilLDAPServer.php');
477
478 $options[AUTH_LOCAL]['txt'] = $lng->txt('authenticate_ilias');
479
480
481 // begin-patch ldap_multiple
482 foreach (ilLDAPServer::_getActiveServerList() as $sid) {
484 $options[AUTH_LDAP . '_' . $sid]['txt'] = $server->getName();
485 }
486 // end-patch ldap_multiple
487
488 include_once('Services/Radius/classes/class.ilRadiusSettings.php');
489 $rad_settings = ilRadiusSettings::_getInstance();
490 if ($rad_settings->isActive()) {
491 $options[AUTH_RADIUS]['txt'] = $rad_settings->getName();
492 }
493
494 if ($ilSetting->get('apache_active')) {
495 global $lng;
496 $apache_settings = new ilSetting('apache_auth');
497 $options[AUTH_APACHE]['txt'] = $apache_settings->get('name', $lng->txt('apache_auth'));
498 $options[AUTH_APACHE]['hide_in_ui'] = true;
499 }
500
501 if ($ilSetting->get('auth_mode', AUTH_LOCAL) == AUTH_LDAP) {
502 $default = AUTH_LDAP;
503 } elseif ($ilSetting->get('auth_mode', AUTH_LOCAL) == AUTH_RADIUS) {
504 $default = AUTH_RADIUS;
505 } else {
506 $default = AUTH_LOCAL;
507 }
508
509 $default = $ilSetting->get('default_auth_mode', $default);
510 $default = (int) $_REQUEST['auth_mode'] ? (int) $_REQUEST['auth_mode'] : $default;
511
512
513 // begin-patch auth_plugin
515 foreach ($pls as $pl) {
516 $auths = $pl->getAuthIds();
517 foreach ($auths as $auth_id) {
518 $pl_auth_option = $pl->getMultipleAuthModeOptions($auth_id);
519 if ($pl_auth_option) {
520 $options = $options + $pl_auth_option;
521 }
522 }
523 }
524 // end-patch auth_plugins
525
526 if (array_key_exists($default, $options)) {
527 $options[$default]['checked'] = true;
528 }
529
530 return $options ? $options : array();
531 }
532
542 public static function _isExternalAccountEnabled()
543 {
544 global $ilSetting;
545
546 if ($ilSetting->get("cas_active")) {
547 return true;
548 }
549 if ($ilSetting->get("soap_auth_active")) {
550 return true;
551 }
552 if ($ilSetting->get("shib_active")) {
553 return true;
554 }
555 if ($ilSetting->get('radius_active')) {
556 return true;
557 }
558 include_once('Services/LDAP/classes/class.ilLDAPServer.php');
560 return true;
561 }
562
563 include_once './Services/LTI/classes/InternalProvider/class.ilAuthProviderLTI.php';
565 return true;
566 }
567
568 require_once 'Services/Saml/classes/class.ilSamlIdp.php';
569 if (count(ilSamlIdp::getActiveIdpList()) > 0) {
570 return true;
571 }
572
573 // begin-path auth_plugin
574 foreach (self::getAuthPlugins() as $pl) {
575 foreach ($pl->getAuthIds() as $auth_id) {
576 if ($pl->isAuthActive($auth_id) and $pl->isExternalAccountNameRequired($auth_id)) {
577 return true;
578 }
579 }
580 }
581 // end-path auth_plugin
582
583 return false;
584 }
585
594 public static function _allowPasswordModificationByAuthMode($a_auth_mode)
595 {
596 // begin-patch ldap_multiple
597 // cast to int
598 switch ((int) $a_auth_mode) {
599 case AUTH_LDAP:
600 case AUTH_RADIUS:
601 case AUTH_ECS:
603 return false;
604 default:
605 return true;
606 }
607 }
608
617 public static function _needsExternalAccountByAuthMode($a_auth_mode)
618 {
619 switch ($a_auth_mode) {
620 case AUTH_LOCAL:
621 case AUTH_APACHE:
622 return false;
623 default:
624 return true;
625 }
626 }
627
631 public static function isPasswordModificationHidden()
632 {
634 global $ilSetting;
635
636 if ($ilSetting->get('usr_settings_hide_password') || $ilSetting->get('usr_settings_disable_password')) {
637 return true;
638 }
639
640 return false;
641 }
642
648 public static function isLocalPasswordEnabledForAuthMode($a_authmode)
649 {
650 global $ilSetting;
651
652 switch ((int) $a_authmode) {
653 // always enabled
654 case AUTH_LOCAL:
655 case AUTH_APACHE:
656 return true;
657
658 // No local passwords for these auth modes
659 case AUTH_LDAP:
660 case AUTH_RADIUS:
661 case AUTH_ECS:
662 case AUTH_SCRIPT:
664 return false;
665
666 case AUTH_SAML:
667 require_once 'Services/Saml/classes/class.ilSamlIdp.php';
669 return $idp->isActive() && $idp->allowLocalAuthentication();
670
671 case AUTH_SHIBBOLETH:
672 return $ilSetting->get("shib_auth_allow_local");
673 case AUTH_SOAP:
674 return $ilSetting->get("soap_auth_allow_local");
675 case AUTH_CAS:
676 return $ilSetting->get("cas_allow_local");
677
678 }
679 return false;
680 }
681
682
683
689 public static function isPasswordModificationEnabled($a_authmode)
690 {
691 global $ilSetting;
692
693 if (self::isPasswordModificationHidden()) {
694 return false;
695 }
696
697 // begin-patch ldap_multiple
698 // cast to int
699 switch ((int) $a_authmode) {
700 // No local passwords for these auth modes
701 case AUTH_LDAP:
702 case AUTH_RADIUS:
703 case AUTH_ECS:
704 case AUTH_SCRIPT:
706 return false;
707
708 case AUTH_SAML:
709 require_once 'Services/Saml/classes/class.ilSamlIdp.php';
711 return $idp->isActive() && $idp->allowLocalAuthentication();
712
713 // Always for and local
714 case AUTH_LOCAL:
715 case AUTH_APACHE:
716 return true;
717
718 // Read setting:
719 case AUTH_SHIBBOLETH:
720 return $ilSetting->get("shib_auth_allow_local");
721 case AUTH_SOAP:
722 return $ilSetting->get("soap_auth_allow_local");
723 case AUTH_CAS:
724 return $ilSetting->get("cas_allow_local");
725 }
726 }
727
733 public static function supportsLocalPasswordValidation($a_authmode)
734 {
735 // begin-patch ldap_multiple
736 // cast to int
737 switch ((int) $a_authmode) {
738 case AUTH_LDAP:
739 case AUTH_LOCAL:
740 case AUTH_RADIUS:
742
743 case AUTH_SHIBBOLETH:
744 case AUTH_SAML:
745 case AUTH_SOAP:
746 case AUTH_CAS:
749 }
751
753 case AUTH_ECS:
754 case AUTH_SCRIPT:
755 case AUTH_APACHE:
756 default:
758 }
759 }
760
761 // begin-patch auth_plugin
766 public static function getAuthPlugins()
767 {
768 $pls = $GLOBALS['ilPluginAdmin']->getActivePluginsForSlot(
770 'Authentication',
771 'authhk'
772 );
773 $pl_objs = array();
774 foreach ($pls as $pl) {
775 $pl_objs[] = $GLOBALS['ilPluginAdmin']->getPluginObject(
777 'Authentication',
778 'authhk',
779 $pl
780 );
781 }
782 return $pl_objs;
783 }
784 // end-patch auth_plugins
785
790 public static function getAuthModeTranslation($a_auth_key)
791 {
792 global $lng;
793
794 switch ((int) $a_auth_key) {
795 case AUTH_LDAP:
796 include_once './Services/LDAP/classes/class.ilLDAPServer.php';
797 $sid = ilLDAPServer::getServerIdByAuthMode($a_auth_key);
799 return $server->getName();
800
802 include_once './Services/LTI/classes/InternalProvider/class.ilAuthProviderLTI.php';
805
806
807 case AUTH_SAML:
808 require_once 'Services/Saml/classes/class.ilSamlIdp.php';
809 $idp_id = ilSamlIdp::getIdpIdByAuthMode($a_auth_key);
811 return $idp->getEntityId();
812
813 default:
814 return $lng->txt('auth_' . self::_getAuthModeName($a_auth_key));
815 }
816 }
817}
if(!isset( $_REQUEST[ 'ReturnTo'])) if(!isset($_REQUEST['AuthId'])) $options
Definition: as_login.php:20
$_GET["client_id"]
$_POST["username"]
An exception for terminatinating execution or to throw for unit testing.
const AUTH_SHIBBOLETH
const AUTH_APACHE
const AUTH_ECS
const AUTH_SAML
const AUTH_LDAP
const AUTH_MULTIPLE
const AUTH_LOCAL
const AUTH_SCRIPT
const AUTH_RADIUS
const AUTH_CAS
const AUTH_INACTIVE
const AUTH_PROVIDER_LTI
const AUTH_SOAP
const IL_COMP_SERVICE
static setContext($a_context)
set context
Factory for auth frontend classes.
static getActiveAuthModes()
get all active authmode server ids
static getKeyByAuthMode($a_auth_mode)
Get auth id by auth mode.
static lookupConsumer($a_sid)
Lookup consumer title.
static getServerIdByAuthMode($a_auth_mode)
Get auth id by auth mode.
static getAuthModeByKey($a_auth_key)
Get auth mode by key.
static getInstance()
Get status instance.
const STATUS_AUTHENTICATION_FAILED
static utility functions used to manage authentication modes
static _allowPasswordModificationByAuthMode($a_auth_mode)
Allow password modification.
static isAuthenticationForced()
Check if authentication is should be forced.
static _getAuthMode($a_auth_mode, $a_db_handler='')
static _getActiveAuthModes()
static initSession()
Initialize session.
static supportsLocalPasswordValidation($a_authmode)
Check if local password validation is supported.
static isLocalPasswordEnabledForAuthMode($a_authmode)
Check if local password validation is enabled for a specific auth_mode.
static _getAuthModeOfUser($a_username, $a_password, $a_db_handler='')
static _getMultipleAuthModeOptions($lng)
static _isExternalAccountEnabled()
Check if an external account name is required.
static getAuthPlugins()
Get active enabled auth plugins.
static getAuthModeTranslation($a_auth_key)
static _hasMultipleAuthenticationMethods()
static isPasswordModificationEnabled($a_authmode)
Check if password modification is enabled.
static _generateLogin($a_login)
generate free login by starting with a default string and adding postfix numbers
static _needsExternalAccountByAuthMode($a_auth_mode)
Check if chosen auth mode needs an external account entry.
static handleForcedAuthentication()
static _getAllAuthModes()
static _getAuthModeName($a_auth_key)
static getInstance()
Get singleton instance.
static goToPublicSection()
go to public section
static getServerIdByAuthMode($a_auth_mode)
Get auth id by auth mode.
static _getServerList()
Get list of all configured servers.
static getInstanceByServerId($a_server_id)
Get instance by server id.
static _getActiveServerList()
Get active server list.
static getAuthModeByKey($a_auth_key)
get auth mode by key
static getKeyByAuthMode($a_auth_mode)
Get auth id by auth mode.
static getLogger($a_component_id)
Get component logger.
static _getInstance()
singleton get instance
static getKeyByAuthMode($a_auth_mode)
static getActiveIdpList()
static getInstanceByIdpId($a_idp_id)
static getIdpIdByAuthMode($a_auth_mode)
static getAuthModeByKey($a_auth_key)
static getAllIdps()
ILIAS Setting Class.
$r
Definition: example_031.php:79
if(!array_key_exists('StateId', $_REQUEST)) $id
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
$server
Definition: getUserInfo.php:12
$ret
Definition: parser.php:6
global $lng
Definition: privfeed.php:17
global $ilSetting
Definition: privfeed.php:17
$idp
Definition: prp.php:13
global $ilDB