32 include_once(
'Services/Authentication/classes/class.ilAuthUtils.php');
60 include_once
"./Services/Administration/classes/class.ilSetting.php";
77 return self::$instance;
92 return $this->kind == self::TYPE_MANUAL;
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;
setAuthModeSequence($a_pos)
set auth mode sequence
static _getActiveServerList()
Get active server list.
static getInstanceByServerId($a_server_id)
Get instance by server id.
isManualSelection()
is manual selection
static getAuthPlugins()
Get active enabled auth plugins.
static _getInstance()
singleton get instance
static getServerIdByAuthMode($a_auth_mode)
Get auth id by auth mode.
Create styles array
The data for the language used.
setKind($a_kind)
set kind of determination
__construct()
Constructor (Singleton)
static _getInstance()
Get instance.
getAuthModeSequence($a_username='')
get auth mode sequence
getCountActiveAuthModes()
get number of auth modes
static getLogger($a_component_id)
Get component logger.