ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Apache auth provider. More...
Public Member Functions | |
__construct (\ilAuthCredentials $credentials) | |
Constructor. More... | |
doAuthentication (\ilAuthStatus $status) | |
migrateAccount (\ilAuthStatus $status) | |
Migrate existing account Maybe ldap sync has to be performed here. More... | |
createNewAccount (\ilAuthStatus $status) | |
Create new account for account migration. More... | |
getExternalAccountName () | |
Get external account name. More... | |
setExternalAccountName ($a_name) | |
Set external account name. More... | |
getTriggerAuthMode () | |
Get auth mode of current authentication type. More... | |
getUserAuthModeName () | |
Get user auth mode name. More... | |
Public Member Functions inherited from ilAuthProvider | |
__construct (ilAuthCredentials $credentials) | |
Constructor. More... | |
getLogger () | |
Get logger. More... | |
getCredentials () | |
Public Member Functions inherited from ilAuthProviderAccountMigrationInterface | |
migrateAccount (ilAuthStatus $status) | |
Create new account. More... | |
createNewAccount (ilAuthStatus $status) | |
Create new ILIAS account for external_account. More... | |
Data Fields | |
const | APACHE_AUTH_TYPE_DIRECT_MAPPING = 1 |
const | APACHE_AUTH_TYPE_EXTENDED_MAPPING = 2 |
const | APACHE_AUTH_TYPE_BY_FUNCTION = 3 |
Data Fields inherited from ilAuthProvider | |
const | STATUS_UNDEFINED = 0 |
const | STATUS_AUTHENTICATION_SUCCESS = 1 |
const | STATUS_AUTHENTICATION_FAILED = 2 |
const | STATUS_MIGRATION = 3 |
Protected Member Functions | |
getSettings () | |
Get setings. More... | |
handleLDAPDataSource (ilAuthStatus $status) | |
Handle ldap as data source. More... | |
Protected Member Functions inherited from ilAuthProvider | |
handleAuthenticationFail (ilAuthStatus $status, $a_reason) | |
Handle failed authentication. More... | |
Private Attributes | |
$settings = null | |
$migration_account = '' | |
$force_new_account = false | |
Apache auth provider.
Definition at line 14 of file class.ilAuthProviderApache.php.
ilAuthProviderApache::__construct | ( | \ilAuthCredentials | $credentials | ) |
Constructor.
\ilAuthCredentials | $credentials |
Definition at line 30 of file class.ilAuthProviderApache.php.
References settings().
ilAuthProviderApache::createNewAccount | ( | \ilAuthStatus | $status | ) |
Create new account for account migration.
\ilAuthStatus | $status |
Definition at line 142 of file class.ilAuthProviderApache.php.
References $GLOBALS, ilAuthUtils\_generateLogin(), ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), getSettings(), handleLDAPDataSource(), ilAuthStatus\setAuthenticatedUserId(), ilAuthStatus\setStatus(), ilAuthStatus\STATUS_AUTHENTICATED, and time.
Referenced by doAuthentication().
ilAuthProviderApache::doAuthentication | ( | \ilAuthStatus | $status | ) |
\ilAuthStatus | $status |
Implements ilAuthProviderInterface.
Definition at line 51 of file class.ilAuthProviderApache.php.
References $_SERVER, ilObjUser\_checkExternalAuthAccount(), ilObjUser\_lookupId(), createNewAccount(), ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), getSettings(), ilAuthProvider\handleAuthenticationFail(), handleLDAPDataSource(), ilUtil\isLogin(), ilAuthStatus\setAuthenticatedUserId(), ilAuthStatus\setStatus(), and ilAuthStatus\STATUS_AUTHENTICATED.
ilAuthProviderApache::getExternalAccountName | ( | ) |
Get external account name.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 190 of file class.ilAuthProviderApache.php.
References $migration_account.
|
protected |
Get setings.
Definition at line 42 of file class.ilAuthProviderApache.php.
References $settings.
Referenced by createNewAccount(), doAuthentication(), getUserAuthModeName(), handleLDAPDataSource(), and migrateAccount().
ilAuthProviderApache::getTriggerAuthMode | ( | ) |
Get auth mode of current authentication type.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 207 of file class.ilAuthProviderApache.php.
References AUTH_APACHE.
ilAuthProviderApache::getUserAuthModeName | ( | ) |
Get user auth mode name.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 215 of file class.ilAuthProviderApache.php.
References getSettings().
|
protected |
Handle ldap as data source.
Auth | $auth | |
string | $ext_account |
Definition at line 229 of file class.ilAuthProviderApache.php.
References $server, ilObjUser\_lookupId(), array, ilAuthProvider\getCredentials(), ilLDAPServer\getInstanceByServerId(), ilAuthProvider\getLogger(), getSettings(), ilAuthProvider\handleAuthenticationFail(), ilAuthStatus\setAuthenticatedUserId(), ilLDAPUserSynchronisation\setExternalAccount(), setExternalAccountName(), ilAuthStatus\setStatus(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, and ilAuthStatus\STATUS_AUTHENTICATED.
Referenced by createNewAccount(), doAuthentication(), and migrateAccount().
ilAuthProviderApache::migrateAccount | ( | \ilAuthStatus | $status | ) |
Migrate existing account Maybe ldap sync has to be performed here.
ilAuthStatus | $status | |
int | $a_usr_id |
Definition at line 129 of file class.ilAuthProviderApache.php.
References getSettings(), and handleLDAPDataSource().
ilAuthProviderApache::setExternalAccountName | ( | $a_name | ) |
Set external account name.
string | $a_name |
Definition at line 199 of file class.ilAuthProviderApache.php.
Referenced by handleLDAPDataSource().
|
private |
Definition at line 23 of file class.ilAuthProviderApache.php.
|
private |
Definition at line 22 of file class.ilAuthProviderApache.php.
Referenced by getExternalAccountName().
|
private |
Definition at line 20 of file class.ilAuthProviderApache.php.
Referenced by getSettings().
const ilAuthProviderApache::APACHE_AUTH_TYPE_BY_FUNCTION = 3 |
Definition at line 18 of file class.ilAuthProviderApache.php.
Referenced by ilAuthFrontendCredentialsApache\initFromRequest().
const ilAuthProviderApache::APACHE_AUTH_TYPE_DIRECT_MAPPING = 1 |
Definition at line 16 of file class.ilAuthProviderApache.php.
Referenced by ilAuthFrontendCredentialsApache\initFromRequest().
const ilAuthProviderApache::APACHE_AUTH_TYPE_EXTENDED_MAPPING = 2 |
Definition at line 17 of file class.ilAuthProviderApache.php.