7define (
"AUTH_LOCAL",1);
 
    9define (
"AUTH_RADIUS",3);
 
   10define (
"AUTH_SCRIPT",4);
 
   11define (
"AUTH_SHIBBOLETH",5);
 
   13define (
"AUTH_SOAP",7);
 
   15define (
"AUTH_HTTP",8);
 
   18define(
'AUTH_OPENID',10);
 
   20define (
"AUTH_APACHE",11);
 
   22define (
"AUTH_INACTIVE",18);
 
   24define(
'AUTH_MULTIPLE',20);
 
   26define(
'AUTH_SOAP_NO_ILIAS_USER', -100);
 
   27define(
'AUTH_LDAP_NO_ILIAS_USER',-200);
 
   28define(
'AUTH_RADIUS_NO_ILIAS_USER',-300);
 
   29define(
'AUTH_OPENID_NO_ILIAS_USER',-400);
 
   34define(
'AUTH_APACHE_FAILED', -500);
 
   37define(
'AUTH_MODE_INACTIVE',-1000);
 
   41define(
'AUTH_SOAP_NO_ILIAS_USER_BUT_EMAIL', -101);
 
   42define(
'AUTH_CAS_NO_ILIAS_USER', -90);
 
   45define(
'AUTH_USER_WRONG_IP', -600);
 
   46define(
'AUTH_USER_INACTIVE', -601);
 
   47define(
'AUTH_USER_TIME_LIMIT_EXCEEDED', -602);
 
   48define(
'AUTH_USER_SIMULTANEOUS_LOGIN', -603);
 
   49define(
'AUTH_CAPTCHA_INVALID', -604);
 
   52include_once 
'./Services/Authentication/classes/class.ilAuthFactory.php';
 
   53require_once(
'Services/Authentication/classes/class.ilSessionControl.php');
 
   77                $user_auth_mode = 
false;
 
   89            (!isset(
$_SESSION[
'_authsession'][
'registered']) ||
 
   90             $_SESSION[
'_authsession'][
'registered'] !== 
true))
 
   93                        if (isset(
$_POST[
'username']) and 
$_POST[
'username'] != 
'' and 
$_POST[
'password'] != 
'' or isset(
$_GET[
'ecs_hash']) or isset(
$_GET[
'ecs_hash_url']) or isset(
$_POST[
'oid_username']) or isset(
$_GET[
'oid_check_status']))
 
  169                        define (
"AUTH_CURRENT", $user_auth_mode);
 
  186                        $authmode = AUTH_CURRENT;
 
  190                if ($authmode == 
null && AUTH_DEFAULT == 
AUTH_APACHE)
 
  197                                include_once 
'./Services/LDAP/classes/class.ilAuthContainerLDAP.php';
 
  203                                include_once 
'./Services/Radius/classes/class.ilAuthContainerRadius.php';
 
  209                                $auth_params = array();
 
  210                                $auth_params[
'sessionName'] = 
"_authhttp".md5($realm);
 
  211                                $ilAuth = 
new ShibAuth($auth_params,
true);
 
  216                                include_once 
'./Services/CAS/classes/class.ilAuthContainerCAS.php';
 
  222                                include_once 
'./Services/SOAPAuth/classes/class.ilAuthContainerSOAP.php';
 
  228                                include_once 
'./Services/Authentication/classes/class.ilAuthContainerMultiple.php';
 
  233                                include_once 
'./Services/WebServices/ECS/classes/class.ilAuthContainerECS.php';
 
  239                                include_once 
'./Services/OpenId/classes/class.ilAuthContainerOpenId.php';
 
  244                                require_once(
'./Services/Authentication/classes/class.ilAuthInactive.php');
 
  249                                include_once 
'./Services/AuthApache/classes/class.ilAuthContainerApache.php';
 
  257                                include_once 
'./Services/Database/classes/class.ilAuthContainerMDB2.php';
 
  265                                        foreach(self::getAuthPlugins() as $pl)
 
  267                                                $container = $pl->getContainer($authmode);
 
  270                                                        $GLOBALS[
'ilLog']->write(__METHOD__.
' Using plugin authentication with auth_mode '.$authmode);
 
  276                                #$GLOBALS['ilLog']->write(__METHOD__.' Using default authentication'); 
  278                                include_once 
'./Services/Database/classes/class.ilAuthContainerMDB2.php';
 
  291                $ilAuth->setExpire(0);
 
  293                ini_set(
"session.cookie_lifetime", 
"0");
 
  306                if(isset(
$_GET[
'ecs_hash']) or isset(
$_GET[
'ecs_hash_url']))
 
  311                if(isset(
$_POST[
'auth_mode']))
 
  313                        return (
int) 
$_POST[
'auth_mode'];
 
  315                if(isset(
$_POST[
'oid_username']) or 
$_GET[
'oid_check_status'])
 
  317                        $GLOBALS[
'ilLog']->write(__METHOD__.
' set context to open id');
 
  322                include_once(
'./Services/Authentication/classes/class.ilAuthModeDetermination.php');
 
  325                if(!$det->isManualSelection() and $det->getCountActiveAuthModes() > 1)
 
  333                if ($a_db_handler != 
'')
 
  335                        $db =& $a_db_handler;
 
  340                $q = 
"SELECT auth_mode FROM usr_data WHERE ".
 
  341                         "login = ".$ilDB->quote($a_username);
 
  351                return in_array($auth_mode,self::_getActiveAuthModes()) ? $auth_mode : 
AUTH_INACTIVE;
 
  360                if ($a_db_handler != 
'')
 
  362                        $db =& $a_db_handler;
 
  365                switch ($a_auth_mode)
 
  467                include_once(
'Services/LDAP/classes/class.ilLDAPServer.php');
 
  479                include_once 
'./Services/WebServices/ECS/classes/class.ilECSServerSettings.php';
 
  485                include_once 
'./Services/OpenId/classes/class.ilOpenIdSettings.php';
 
  492                foreach(self::getAuthPlugins() as $pl)
 
  494                        foreach($pl->getAuthIds() as $auth_id)
 
  496                                if($pl->isAuthActive($auth_id))
 
  498                                        $modes[$pl->getAuthName($auth_id)] = $auth_id;
 
  535                        $r = 
$ilDB->query(
"SELECT login FROM usr_data WHERE login = ".
 
  536                                $ilDB->quote($c_login));
 
  537                        if ($r->numRows() > 0)
 
  540                                $c_login = $a_login.$postfix;
 
  553                include_once(
'Services/Radius/classes/class.ilRadiusSettings.php');
 
  556                if($rad_settings->isActive())
 
  560                include_once(
'Services/LDAP/classes/class.ilLDAPServer.php');
 
  574                        foreach($pl->getAuthIds() as $auth_id)
 
  576                                if($pl->getMultipleAuthModeOptions($auth_id))
 
  593                include_once(
'Services/LDAP/classes/class.ilLDAPServer.php');
 
  603                include_once(
'Services/Radius/classes/class.ilRadiusSettings.php');
 
  605                if($rad_settings->isActive())
 
  613                        $apache_settings = 
new ilSetting(
'apache_auth');
 
  631                $default = 
$ilSetting->get(
'default_auth_mode',$default);
 
  639                        $auths = $pl->getAuthIds();
 
  640                        foreach($auths as $auth_id)
 
  642                                $pl_auth_option = $pl->getMultipleAuthModeOptions($auth_id);
 
  651                $options[$default][
'checked'] = 
true;
 
  685                include_once(
'Services/LDAP/classes/class.ilLDAPServer.php');
 
  690                include_once 
'./Services/OpenId/classes/class.ilOpenIdSettings.php';
 
  697                foreach(self::getAuthPlugins() as $pl)
 
  699                        foreach($pl->getAuthIds() as $auth_id)
 
  701                                if($pl->isAuthActive($auth_id) and $pl->isExternalAccountNameRequired($auth_id))
 
  763                if(
$ilSetting->get(
'usr_settings_hide_password') or 
$ilSetting->get(
'usr_settings_disable_password'))
 
  785                                return $ilSetting->get(
"shib_auth_allow_local");
 
  787                                return $ilSetting->get(
"soap_auth_allow_local");
 
  832                $pls = 
$GLOBALS[
'ilPluginAdmin']->getActivePluginsForSlot(
 
  840                        $pl_objs[] = 
$GLOBALS[
'ilPluginAdmin']->getPluginObject(
 
const DB_FETCHMODE_OBJECT
Authentication against ILIAS database.
@classDescription CAS authentication
Custom PEAR Auth Container for ECS auth checks.
Overwritten Pear class AuthContainerLDAP This class is overwritten to support nested groups.
Authentication against ILIAS database.
@classDescription Pear auth container for openid
@classDescription Overwritten Pear class AuthContainerRadius This class is overwritten to support to ...
@classDescription Authentication against external SOAP server
static factory(ilAuthContainerBase $deco)
The factory.
static setContext($a_context)
set context
static _getInstance()
Get instance.
static utility functions used to manage authentication modes
static _allowPasswordModificationByAuthMode($a_auth_mode)
Allow password modification.
static supportsLocalPasswordValidation($a_authmode)
Check if local password validation is supported.
_getAuthMode($a_auth_mode, $a_db_handler='')
_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.
_generateLogin($a_login)
generate free login by starting with a default string and adding postfix numbers
static _hasMultipleAuthenticationMethods()
static isPasswordModificationEnabled($a_authmode)
Check if password modification is enabled.
static _needsExternalAccountByAuthMode($a_auth_mode)
Check if chosen auth mode needs an external account entry.
_initAuth()
initialises $ilAuth
static _getAuthModeName($a_auth_key)
static getInstance()
Get singleton instance.
static _getActiveServerList()
Get active server list.
static _getFirstActiveServer()
Get first active server.
static getInstance()
Get singleton instance.
static _getInstance()
singleton get instance
static checkExpiredSession()
checks for possibly expired session should be called from ilAuthUtils::__initAuth() so it's called be...
static getIdleValue($fixedMode=false)
Returns the idle time in seconds.
if($_REQUEST['ilias_path']) define('ILIAS_HTTP_PATH' $_REQUEST['ilias_path']
if(!is_array($argv)) $options
const WebDAV_Authentication