ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Description of class class. More...
Public Member Functions | |||
__construct (\ilAuthCredentials $credentials, $a_server_id=0) | |||
Constructor. More... | |||
getServer () | |||
Get server. More... | |||
doAuthentication (\ilAuthStatus $status) | |||
Do authentication. More... | |||
createNewAccount (ilAuthStatus $status) | |||
Create new ILIAS account for external_account.
| |||
migrateAccount (ilAuthStatus $status) | |||
Create new account.
| |||
getTriggerAuthMode () | |||
Get trigger auth mode. More... | |||
getUserAuthModeName () | |||
Get user auth mode name. More... | |||
getExternalAccountName () | |||
Get external account name. More... | |||
setExternalAccountName ($a_name) | |||
Set external account name. More... | |||
Public Member Functions inherited from ilAuthProvider | |||
__construct (ilAuthCredentials $credentials) | |||
Constructor. More... | |||
getLogger () | |||
Get logger. More... | |||
getCredentials () | |||
Protected Member Functions | |
updateAccount (ilAuthStatus $status, array $user) | |
Update Account. More... | |
initServer ($a_server_id) | |
Init Server. More... | |
changeKeyCase ($a_string) | |
Change case similar to array_change_key_case, to avoid further encoding problems. More... | |
Protected Member Functions inherited from ilAuthProvider | |
handleAuthenticationFail (ilAuthStatus $status, $a_reason) | |
Handle failed authentication. More... | |
Private Attributes | |
$server = null | |
$migration_account = '' | |
$force_new_account = false | |
Additional Inherited Members | |
Data Fields inherited from ilAuthProvider | |
const | STATUS_UNDEFINED = 0 |
const | STATUS_AUTHENTICATION_SUCCESS = 1 |
const | STATUS_AUTHENTICATION_FAILED = 2 |
const | STATUS_MIGRATION = 3 |
Description of class class.
Definition at line 15 of file class.ilAuthProviderLDAP.php.
ilAuthProviderLDAP::__construct | ( | \ilAuthCredentials | $credentials, |
$a_server_id = 0 |
|||
) |
Constructor.
\ilAuthCredentials | $credentials |
Definition at line 25 of file class.ilAuthProviderLDAP.php.
References initServer().
|
protected |
Change case similar to array_change_key_case, to avoid further encoding problems.
string | $a_string |
Definition at line 282 of file class.ilAuthProviderLDAP.php.
References array.
Referenced by createNewAccount(), doAuthentication(), and migrateAccount().
ilAuthProviderLDAP::createNewAccount | ( | ilAuthStatus | $status | ) |
Create new ILIAS account for external_account.
ilAuthStatus |
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 173 of file class.ilAuthProviderLDAP.php.
References $query, changeKeyCase(), ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), getServer(), ilAuthProvider\handleAuthenticationFail(), IL_LDAP_BIND_DEFAULT, and updateAccount().
ilAuthProviderLDAP::doAuthentication | ( | \ilAuthStatus | $status | ) |
Do authentication.
\ilAuthStatus | $status |
Implements ilAuthProviderInterface.
Definition at line 45 of file class.ilAuthProviderLDAP.php.
References $query, changeKeyCase(), ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), getServer(), ilAuthProvider\handleAuthenticationFail(), IL_LDAP_BIND_AUTH, IL_LDAP_BIND_DEFAULT, and updateAccount().
ilAuthProviderLDAP::getExternalAccountName | ( | ) |
Get external account name.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 263 of file class.ilAuthProviderLDAP.php.
References $migration_account.
ilAuthProviderLDAP::getServer | ( | ) |
Get server.
Definition at line 35 of file class.ilAuthProviderLDAP.php.
References $server.
Referenced by createNewAccount(), doAuthentication(), getTriggerAuthMode(), migrateAccount(), and updateAccount().
ilAuthProviderLDAP::getTriggerAuthMode | ( | ) |
Get trigger auth mode.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 246 of file class.ilAuthProviderLDAP.php.
References AUTH_LDAP, and getServer().
ilAuthProviderLDAP::getUserAuthModeName | ( | ) |
Get user auth mode name.
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 254 of file class.ilAuthProviderLDAP.php.
|
protected |
Init Server.
Definition at line 162 of file class.ilAuthProviderLDAP.php.
Referenced by __construct().
ilAuthProviderLDAP::migrateAccount | ( | ilAuthStatus | $status | ) |
Create new account.
ilAuthStatus |
Implements ilAuthProviderAccountMigrationInterface.
Definition at line 221 of file class.ilAuthProviderLDAP.php.
References $query, changeKeyCase(), ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), getServer(), ilAuthProvider\handleAuthenticationFail(), IL_LDAP_BIND_DEFAULT, and updateAccount().
ilAuthProviderLDAP::setExternalAccountName | ( | $a_name | ) |
Set external account name.
string | $a_name |
Definition at line 272 of file class.ilAuthProviderLDAP.php.
Referenced by updateAccount().
|
protected |
Update Account.
array | $user |
Definition at line 118 of file class.ilAuthProviderLDAP.php.
References ilObjUser\_lookupId(), ilLogLevel\DEBUG, ilAuthProvider\getCredentials(), ilAuthProvider\getLogger(), getServer(), ilAuthProvider\handleAuthenticationFail(), ilAuthStatus\setAuthenticatedUserId(), setExternalAccountName(), ilAuthStatus\setStatus(), ilAuthStatus\STATUS_ACCOUNT_MIGRATION_REQUIRED, and ilAuthStatus\STATUS_AUTHENTICATED.
Referenced by createNewAccount(), doAuthentication(), and migrateAccount().
|
private |
Definition at line 19 of file class.ilAuthProviderLDAP.php.
|
private |
Definition at line 18 of file class.ilAuthProviderLDAP.php.
Referenced by getExternalAccountName().
|
private |
Definition at line 17 of file class.ilAuthProviderLDAP.php.
Referenced by getServer().