32include_once(
'Services/Authentication/classes/class.ilAuthUtils.php');
 
   60                include_once 
"./Services/Administration/classes/class.ilSetting.php";
 
  115                $this->kind = $a_kind;
 
  126                if(!strlen($a_username))
 
  128                        return $this->position ? $this->position : array();             
 
  132                foreach($this->position as $auth_key)
 
  134                        include_once 
'./Services/LDAP/classes/class.ilLDAPServer.php';
 
  140                                if(strlen(
$server->getUsernameFilter()))
 
  143                                        $pattern = str_replace(
'*',
'.*?', 
$server->getUsernameFilter());
 
  145                                        if(preg_match(
'/^'.$pattern.
'$/', $a_username))
 
  148                                                array_unshift($sorted, $auth_key);
 
  154                        $sorted[] = $auth_key;
 
  157                return (array) $sorted;
 
  168                return count($this->position);
 
  180                $this->position = $a_pos;
 
  197                foreach($this->position as $auth_mode)
 
  215                $this->kind = $this->
settings->get(
'kind',self::TYPE_MANUAL);
 
  218                include_once(
'Services/LDAP/classes/class.ilLDAPServer.php');
 
  221                include_once(
'Services/Radius/classes/class.ilRadiusSettings.php');
 
  223                $rad_active = $rad_settings->isActive();
 
  225                $soap_active = 
$ilSetting->get(
'soap_auth_active',
false);
 
  228                $apache_settings = 
new ilSetting(
'apache_auth');
 
  229                $apache_active = $apache_settings->get(
'apache_enable_auth');
 
  236                        $auth_mode = $this->
settings->get((
string) $i++,FALSE);
 
  237                        if($auth_mode === FALSE)
 
  244                                switch((
int) $auth_mode)
 
  247                                                $this->position[] = $auth_mode;
 
  256                                                        $this->position[] = $auth_mode;
 
  263                                                        $this->position[] = $auth_mode;  
 
  270                                                        $this->position[] = $auth_mode;
 
  277                                                        $this->position[] = $auth_mode;
 
  285                                                        if($pl->isAuthActive($auth_mode))
 
  287                                                                $this->position[] = $auth_mode;
 
  309                                if(!in_array(
AUTH_LDAP.
'_'.$sid, $this->position))
 
  311                                        $this->position[] = (
AUTH_LDAP.
'_'.$sid);
 
  342                        foreach($pl->getAuthIds() as $auth_id)
 
  344                                if($pl->isAuthActive($auth_id))
 
  346                                        if(!in_array($auth_id, $this->position))
 
  348                                                $this->position[] = $auth_id;
 
An exception for terminatinating execution or to throw for unit testing.
static _getInstance()
Get instance.
getCountActiveAuthModes()
get number of auth modes
getAuthModeSequence($a_username='')
get auth mode sequence
__construct()
Constructor (Singleton)
setKind($a_kind)
set kind of determination
setAuthModeSequence($a_pos)
set auth mode sequence
isManualSelection()
is manual selection
static getAuthPlugins()
Get active enabled auth plugins.
static getServerIdByAuthMode($a_auth_mode)
Get auth id by auth mode.
static getInstanceByServerId($a_server_id)
Get instance by server id.
static _getActiveServerList()
Get active server list.
static getLogger($a_component_id)
Get component logger.
static _getInstance()
singleton get instance