ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Static Public Member Functions | |
static | isAuthenticationForced () |
static | handleForcedAuthentication () |
static | _getAuthMode (?string $a_auth_mode) |
static | _getAuthModeName ($a_auth_key) |
static | _getActiveAuthModes () |
static | _getAllAuthModes () |
static | _generateLogin (string $a_login) |
generate free login by starting with a default string and adding postfix numbers More... | |
static | _hasMultipleAuthenticationMethods () |
static | _getMultipleAuthModeOptions (ilLanguage $lng) |
static | _isExternalAccountEnabled () |
Check if an external account name is required. More... | |
static | _allowPasswordModificationByAuthMode ($a_auth_mode) |
Allow password modification. More... | |
static | _needsExternalAccountByAuthMode ($a_auth_mode) |
Check if chosen auth mode needs an external account entry. More... | |
static | isLocalPasswordEnabledForAuthMode ($a_authmode) |
Check if local password validation is enabled for a specific auth_mode. More... | |
static | isPasswordModificationEnabled ($a_authmode) |
Check if password modification is enabled. More... | |
static | supportsLocalPasswordValidation ($a_authmode) |
Check if local password validation is supported. More... | |
static | getAuthPlugins () |
static | getAuthModeTranslation (string $a_auth_key, string $auth_name='') |
Data Fields | |
const int | LOCAL_PWV_FULL = 1 |
const int | LOCAL_PWV_NO = 2 |
const int | LOCAL_PWV_USER = 3 |
const int | AUTH_LOCAL = 1 |
const int | AUTH_LDAP = 2 |
const int | AUTH_SCRIPT = 4 |
const int | AUTH_SHIBBOLETH = 5 |
const int | AUTH_SOAP = 7 |
const int | AUTH_HTTP = 8 |
const int | AUTH_ECS = 9 |
const int | AUTH_APACHE = 11 |
const int | AUTH_SAML = 12 |
const int | AUTH_OPENID_CONNECT = 15 |
const int | AUTH_PROVIDER_LTI = 22 |
const array | REGEX_DELIMITERS = ['/', '~', '@', ';', '%', '`', '#'] |
Private Attributes | |
const int | AUTH_INACTIVE = 18 |
const int | AUTH_MULTIPLE = 20 |
const int | AUTH_SESSION = 21 |
const int | AUTH_SOAP_NO_ILIAS_USER = -100 |
const int | AUTH_LDAP_NO_ILIAS_USER = -200 |
const int | AUTH_APACHE_FAILED = -500 |
const int | AUTH_SAML_FAILED = -501 |
const int | AUTH_MODE_INACTIVE = -1000 |
const int | AUTH_SOAP_NO_ILIAS_USER_BUT_EMAIL = -101 |
const int | AUTH_USER_WRONG_IP = -600 |
const int | AUTH_USER_INACTIVE = -601 |
const int | AUTH_USER_TIME_LIMIT_EXCEEDED = -602 |
const int | AUTH_USER_SIMULTANEOUS_LOGIN = -603 |
Definition at line 23 of file class.ilAuthUtils.php.
|
static |
Allow password modification.
int | string | $a_auth_mode |
Definition at line 497 of file class.ilAuthUtils.php.
References AUTH_ECS, AUTH_LDAP, AUTH_OPENID_CONNECT, and AUTH_PROVIDER_LTI.
Referenced by ilPasswordInputGUI\checkInput().
|
static |
generate free login by starting with a default string and adding postfix numbers
Definition at line 339 of file class.ilAuthUtils.php.
Referenced by ilAuthProviderECS\createUser(), ilAuthProviderLTI\createUser(), ilAuthProviderSoap\handleSoapAuth(), ilAuthProviderSaml\importUser(), ilOpenIdConnectUserSync\transformToXml(), and ilLDAPAttributeToUser\usersToXML().
|
static |
Definition at line 231 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, ilLDAPServer\_getActiveServerList(), AUTH_APACHE, AUTH_ECS, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilSamlIdp\getActiveIdpList(), ilAuthProviderLTI\getAuthModes(), ilOpenIdConnectSettings\getInstance(), and ilECSServerSettings\getInstance().
Referenced by ilObjAuthSettingsGUI\buildRegistrationRoleMappingForm(), ilECSMappingUtils\getAuthModeSelection(), and ilUserTableGUI\initFilter().
|
static |
Definition at line 291 of file class.ilAuthUtils.php.
References $id, _getAuthModeName(), ilLDAPServer\_getServerList(), AUTH_APACHE, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_SAML, AUTH_SHIBBOLETH, AUTH_SOAP, ilSamlIdp\getAllIdps(), and ilAuthProviderLTI\getAuthModes().
|
static |
Definition at line 121 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, AUTH_APACHE, AUTH_ECS, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilLDAPServer\getKeyByAuthMode(), ilAuthProviderLTI\getKeyByAuthMode(), and ilSamlIdp\getKeyByAuthMode().
Referenced by ilPasswordInputGUI\checkInput(), ilUserTableGUI\fillRow(), and ilObjUser\getAuthMode().
|
static |
$a_auth_key | int|string |
Definition at line 182 of file class.ilAuthUtils.php.
References AUTH_APACHE, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_SAML, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilLDAPServer\getAuthModeByKey(), ilAuthProviderLTI\getAuthModeByKey(), and ilSamlIdp\getAuthModeByKey().
Referenced by _getAllAuthModes(), ilObjUserGUI\buildAuthModeInput(), ilObjAuthSettingsGUI\buildRegistrationRoleMappingForm(), ilECSCmsCourseMemberCommandQueueHandler\createMember(), ilLDAPServer\getAuthenticationMappingKey(), ilAuthFrontend\handleLoginAttempts(), ilUserImportParser\importEndTag(), ilUserTableGUI\initFilter(), and ilUserImportParser\verifyEndTag().
|
static |
Definition at line 395 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, $lng, $server, ilLDAPServer\_getActiveServerList(), AUTH_APACHE, AUTH_LDAP, AUTH_LOCAL, getAuthPlugins(), and ilLDAPServer\getInstanceByServerId().
Referenced by ilStartUpGUI\buildStandardLoginForm().
|
static |
Definition at line 365 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, and ilLDAPServer\_getActiveServerList().
Referenced by ilStartUpGUI\buildStandardLoginForm(), and ilStartUpGUI\doStandardAuthentication().
|
static |
Check if an external account name is required.
That's the case if LDAP or SOAP is active
Definition at line 452 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, ilLDAPServer\_getActiveServerList(), ilAuthProviderLTI\getActiveAuthModes(), ilSamlIdp\getActiveIdpList(), and ilOpenIdConnectSettings\getInstance().
Referenced by ilObjUserGUI\saveObject(), and ilObjUserGUI\updateObject().
|
static |
Check if chosen auth mode needs an external account entry.
null | string | int | $a_auth_mode | auth_mode |
Definition at line 515 of file class.ilAuthUtils.php.
References AUTH_APACHE, and AUTH_LOCAL.
Referenced by ilObjUser\isPasswordChangeDemanded(), and ilObjUser\isPasswordExpired().
|
static |
Definition at line 623 of file class.ilAuthUtils.php.
References $DIC, $lng, AUTH_LDAP, AUTH_PROVIDER_LTI, AUTH_SAML, ilSamlIdp\getIdpIdByAuthMode(), ilSamlIdp\getInstanceByIdpId(), ilLDAPServer\getInstanceByServerId(), ilLDAPServer\getServerIdByAuthMode(), ilAuthProviderLTI\getServerIdByAuthMode(), and ilAuthProviderLTI\lookupConsumer().
Referenced by ilObjUserGUI\buildAuthModeInput(), ilUserTableGUI\fillRow(), ilECSMappingUtils\getAuthModeSelection(), and ilUserTableGUI\initFilter().
|
static |
Definition at line 618 of file class.ilAuthUtils.php.
References $GLOBALS.
Referenced by _getMultipleAuthModeOptions(), ilObjAuthSettingsGUI\buildAuthModeDeterminationForm(), ilAuthProviderFactory\getProviderByAuthMode(), and ilAuthModeDetermination\read().
|
static |
Definition at line 82 of file class.ilAuthUtils.php.
References $DIC, $GLOBALS, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilInitialisation\goToPublicSection(), ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
Referenced by ilInitialisation\resumeUserSession().
|
static |
Definition at line 74 of file class.ilAuthUtils.php.
References $DIC.
Referenced by ilInitialisation\resumeUserSession().
|
static |
Check if local password validation is enabled for a specific auth_mode.
int | string | $a_authmode |
Definition at line 540 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, AUTH_APACHE, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_SAML, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilSamlIdp\getIdpIdByAuthMode(), and ilSamlIdp\getInstanceByIdpId().
Referenced by isPasswordModificationEnabled(), and ilPasswordAssistanceGUI\submitAssistanceForm().
|
static |
Check if password modification is enabled.
int | string | $a_authmode |
Definition at line 577 of file class.ilAuthUtils.php.
References isLocalPasswordEnabledForAuthMode().
Referenced by ILIAS\Authentication\Password\LocalUserPasswordManager\allowPasswordChange().
|
static |
Check if local password validation is supported.
null | string | int | $a_authmode |
Definition at line 591 of file class.ilAuthUtils.php.
References AUTH_APACHE, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_SAML, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, LOCAL_PWV_FULL, LOCAL_PWV_NO, and LOCAL_PWV_USER.
Referenced by ilObjWebDAV\retrieveWebDAVCommandArrayForActionMenu().
const int ilAuthUtils::AUTH_APACHE = 11 |
Definition at line 36 of file class.ilAuthUtils.php.
Referenced by _getActiveAuthModes(), _getAllAuthModes(), _getAuthMode(), _getAuthModeName(), _getMultipleAuthModeOptions(), _needsExternalAccountByAuthMode(), ilObjAuthSettingsGUI\buildAuthModeDeterminationForm(), ILIAS\Authentication\Form\ApacheAuthSettingsForm\buildLdapEnableInput(), ilStartUpGUI\doApacheAuthentication(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderApache\getTriggerAuthMode(), isLocalPasswordEnabledForAuthMode(), ilAuthModeDetermination\read(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), and supportsLocalPasswordValidation().
|
private |
Definition at line 55 of file class.ilAuthUtils.php.
const int ilAuthUtils::AUTH_ECS = 9 |
Definition at line 35 of file class.ilAuthUtils.php.
Referenced by _allowPasswordModificationByAuthMode(), _getActiveAuthModes(), _getAllAuthModes(), _getAuthMode(), _getAuthModeName(), ILIAS\LegalDocuments\test\ConsumerToolbox\UserTest\externalAuthModes(), ilAuthProviderFactory\getProviderByAuthMode(), ILIAS\LegalDocuments\ConsumerToolbox\User\isExternalAccount(), isLocalPasswordEnabledForAuthMode(), and supportsLocalPasswordValidation().
const int ilAuthUtils::AUTH_HTTP = 8 |
Definition at line 34 of file class.ilAuthUtils.php.
|
private |
Definition at line 40 of file class.ilAuthUtils.php.
const int ilAuthUtils::AUTH_LDAP = 2 |
Definition at line 30 of file class.ilAuthUtils.php.
Referenced by _allowPasswordModificationByAuthMode(), _getAllAuthModes(), _getAuthModeName(), _getMultipleAuthModeOptions(), ILIAS\LegalDocuments\test\ConsumerToolbox\UserTest\externalAuthModes(), getAuthModeTranslation(), ilLDAPServer\getKeyByAuthMode(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderLDAP\getTriggerAuthMode(), ilLDAPServer\isAuthModeLDAP(), ILIAS\LegalDocuments\ConsumerToolbox\User\isLDAPUser(), isLocalPasswordEnabledForAuthMode(), ilAuthModeDetermination\read(), supportsLocalPasswordValidation(), and ILIAS\LegalDocuments\test\ConsumerToolbox\UserTest\testIsLDAPUser().
|
private |
Definition at line 50 of file class.ilAuthUtils.php.
const int ilAuthUtils::AUTH_LOCAL = 1 |
Definition at line 29 of file class.ilAuthUtils.php.
Referenced by _getActiveAuthModes(), _getAllAuthModes(), _getAuthMode(), _getAuthModeName(), _getMultipleAuthModeOptions(), _needsExternalAccountByAuthMode(), ilObjAuthSettingsGUI\buildAuthModeDeterminationForm(), ilObjAuthSettingsGUI\buildRegistrationRoleMappingForm(), ilAccountRegistrationGUI\createUser(), ilStartUpGUI\doMigration(), ilObjAuthSettingsGUI\getAuthModeTitle(), ilLocalUserPasswordSettingsGUI\getPasswordForm(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderCliFactory\getProviders(), ilAuthFrontend\handleLoginAttempts(), ilAuthProviderSaml\handleSamlAuth(), isLocalPasswordEnabledForAuthMode(), ilLTIViewGUI\logout(), ilAuthModeDetermination\read(), ILIAS\Authentication\Password\LocalUserPasswordManager\resetLastPasswordChangeForLocalUsers(), ilObjAuthSettingsGUI\saveApacheSettingsObject(), ILIAS\Authentication\Setup\AbandonCASAuthModeUpdateObjective\step_1(), ilPasswordAssistanceGUI\submitAssistanceForm(), and supportsLocalPasswordValidation().
|
private |
Definition at line 59 of file class.ilAuthUtils.php.
|
private |
Definition at line 42 of file class.ilAuthUtils.php.
const int ilAuthUtils::AUTH_OPENID_CONNECT = 15 |
Definition at line 38 of file class.ilAuthUtils.php.
Referenced by _allowPasswordModificationByAuthMode(), _getActiveAuthModes(), _getAllAuthModes(), _getAuthMode(), _getAuthModeName(), ilStartUpGUI\doOpenIdConnectAuthentication(), ilAuthProviderFactory\getProviderByAuthMode(), isLocalPasswordEnabledForAuthMode(), and supportsLocalPasswordValidation().
const int ilAuthUtils::AUTH_PROVIDER_LTI = 22 |
Definition at line 45 of file class.ilAuthUtils.php.
Referenced by _allowPasswordModificationByAuthMode(), _getAllAuthModes(), _getAuthModeName(), ilStartUpGUI\doLTIAuthentication(), ILIAS\LegalDocuments\test\ConsumerToolbox\UserTest\externalAuthModes(), getAuthModeTranslation(), ilAuthProviderLTI\getKeyByAuthMode(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderLTI\isAuthModeLTI(), ILIAS\LegalDocuments\ConsumerToolbox\User\isExternalAccount(), isLocalPasswordEnabledForAuthMode(), and supportsLocalPasswordValidation().
const int ilAuthUtils::AUTH_SAML = 12 |
Definition at line 37 of file class.ilAuthUtils.php.
Referenced by _getAllAuthModes(), _getAuthModeName(), ilSamlIdp\delete(), ilStartUpGUI\doSamlAuthentication(), getAuthModeTranslation(), ilSamlIdp\getKeyByAuthMode(), ilAuthProviderFactory\getProviderByAuthMode(), ilAuthProviderSaml\getTriggerAuthMode(), ilSamlAppEventListener\handleEvent(), ilSamlIdp\isAuthModeSaml(), isLocalPasswordEnabledForAuthMode(), ilObjAuthSettingsGUI\setAuthModeObject(), ilPasswordAssistanceGUI\submitAssistanceForm(), and supportsLocalPasswordValidation().
|
private |
Definition at line 57 of file class.ilAuthUtils.php.
const int ilAuthUtils::AUTH_SCRIPT = 4 |
Definition at line 31 of file class.ilAuthUtils.php.
Referenced by _getActiveAuthModes(), _getAuthMode(), _getAuthModeName(), ilObjAuthSettingsGUI\getAuthModeTitle(), isLocalPasswordEnabledForAuthMode(), ilObjAuthSettingsGUI\saveScriptObject(), ilObjAuthSettingsGUI\setAuthModeObject(), and supportsLocalPasswordValidation().
|
private |
Definition at line 44 of file class.ilAuthUtils.php.
const int ilAuthUtils::AUTH_SHIBBOLETH = 5 |
Definition at line 32 of file class.ilAuthUtils.php.
Referenced by _getActiveAuthModes(), _getAllAuthModes(), _getAuthMode(), _getAuthModeName(), ilECSCmsCourseMemberCommandQueueHandler\createMember(), ILIAS\AuthShibboleth\LoginPerformer\doShibbolethAuthentication(), ilLocalUserPasswordSettingsGUI\getPasswordForm(), ilAuthProviderFactory\getProviderByAuthMode(), isLocalPasswordEnabledForAuthMode(), ilObjAuthSettingsGUI\setAuthModeObject(), and supportsLocalPasswordValidation().
const int ilAuthUtils::AUTH_SOAP = 7 |
Definition at line 33 of file class.ilAuthUtils.php.
Referenced by _getActiveAuthModes(), _getAllAuthModes(), _getAuthMode(), _getAuthModeName(), ilObjAuthSettingsGUI\buildAuthModeDeterminationForm(), ilAuthProviderSoap\doAuthentication(), ilAuthProviderFactory\getProviderByAuthMode(), isLocalPasswordEnabledForAuthMode(), ilAuthModeDetermination\read(), and supportsLocalPasswordValidation().
|
private |
Definition at line 48 of file class.ilAuthUtils.php.
|
private |
Definition at line 63 of file class.ilAuthUtils.php.
|
private |
Definition at line 67 of file class.ilAuthUtils.php.
|
private |
Definition at line 69 of file class.ilAuthUtils.php.
|
private |
Definition at line 68 of file class.ilAuthUtils.php.
|
private |
Definition at line 66 of file class.ilAuthUtils.php.
const int ilAuthUtils::LOCAL_PWV_FULL = 1 |
Definition at line 25 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
const int ilAuthUtils::LOCAL_PWV_NO = 2 |
Definition at line 26 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
const int ilAuthUtils::LOCAL_PWV_USER = 3 |
Definition at line 27 of file class.ilAuthUtils.php.
Referenced by ilObjWebDAV\retrieveWebDAVCommandArrayForActionMenu(), and supportsLocalPasswordValidation().
const array ilAuthUtils::REGEX_DELIMITERS = ['/', '~', '@', ';', '%', '`', '#'] |
Definition at line 72 of file class.ilAuthUtils.php.
Referenced by ilAuthModeDetermination\getAuthModeSequence(), and ilLDAPRoleAssignmentRule\wildcardCompare().