ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
static utility functions used to manage authentication modes More...
Static Public Member Functions | |
static | initSession () |
Initialize session. More... | |
static | isAuthenticationForced () |
Check if authentication is should be forced. More... | |
static | handleForcedAuthentication () |
static | _getAuthModeOfUser ($a_username, $a_password, $a_db_handler='') |
static | _getAuthMode ($a_auth_mode, $a_db_handler='') |
static | _getAuthModeName ($a_auth_key) |
static | _getActiveAuthModes () |
static | _getAllAuthModes () |
static | _generateLogin ($a_login) |
generate free login by starting with a default string and adding postfix numbers More... | |
static | _hasMultipleAuthenticationMethods () |
static | _getMultipleAuthModeOptions ($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 () |
Get active enabled auth plugins. More... | |
static | getAuthModeTranslation ($a_auth_key, $auth_name='') |
Data Fields | |
const | LOCAL_PWV_FULL = 1 |
const | LOCAL_PWV_NO = 2 |
const | LOCAL_PWV_USER = 3 |
static utility functions used to manage authentication modes
Definition at line 68 of file class.ilAuthUtils.php.
|
static |
Allow password modification.
public
int | auth_mode |
Definition at line 631 of file class.ilAuthUtils.php.
References AUTH_ECS, AUTH_LDAP, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, and AUTH_RADIUS.
Referenced by ilPasswordInputGUI\checkInput(), and ilObjUserGUI\updateObject().
|
static |
generate free login by starting with a default string and adding postfix numbers
Definition at line 438 of file class.ilAuthUtils.php.
References $DIC, $ilDB, and $r.
Referenced by ilCASAttributeToUser\create(), ilRadiusAttributeToUser\create(), ilAuthProviderLTI\createUser(), ilAuthProviderECS\createUser(), ilAuthContainerECS\createUser(), ilAuthProviderSoap\handleSoapAuth(), ilAuthProviderSaml\importUser(), ilCASAuth\login(), ilAuthContainerCAS\loginObserver(), ilAuthContainerSOAP\loginObserver(), ilOpenIdConnectUserSync\transformToXml(), and ilLDAPAttributeToUser\usersToXML().
|
static |
Definition at line 322 of file class.ilAuthUtils.php.
References $DIC, $idp, $ilSetting, ilLDAPServer\_getActiveServerList(), AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_RADIUS, AUTH_SAML, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilSamlIdp\getActiveIdpList(), ilAuthProviderLTI\getAuthModes(), ilECSServerSettings\getInstance(), and ilOpenIdConnectSettings\getInstance().
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilObjAuthSettingsGUI\authSettingsObject(), ilSoapAdministration\getNIC(), ilObjUserGUI\getValues(), and ilUserTableGUI\initFilter().
|
static |
Definition at line 388 of file class.ilAuthUtils.php.
References $id, $idp, $ret, _getAuthModeName(), ilLDAPServer\_getServerList(), AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_RADIUS, AUTH_SAML, AUTH_SHIBBOLETH, AUTH_SOAP, ilSamlIdp\getAllIdps(), and ilAuthProviderLTI\getAuthModes().
Referenced by ilObjAuthSettingsGUI\authSettingsObject().
|
static |
Definition at line 181 of file class.ilAuthUtils.php.
References $DIC, $ilDB, $ilSetting, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilSamlIdp\getKeyByAuthMode(), ilAuthProviderLTI\getKeyByAuthMode(), and ilLDAPServer\getKeyByAuthMode().
Referenced by ilPasswordInputGUI\checkInput(), ilUserTableGUI\fillRow(), ilObjUser\getAuthMode(), and ilObjUserGUI\updateObject().
|
static |
Definition at line 256 of file class.ilAuthUtils.php.
References $DIC, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_RADIUS, AUTH_SAML, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilSamlIdp\getAuthModeByKey(), ilAuthProviderLTI\getAuthModeByKey(), and ilLDAPServer\getAuthModeByKey().
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilObjUser\_checkExternalAuthAccount(), _getAllAuthModes(), ilObjUser\_getExternalAccountsByAuthMode(), ilObjAuthSettingsGUI\authSettingsObject(), ilECSCmsCourseMemberCommandQueueHandler\createMember(), ilLDAPServer\getAuthenticationMappingKey(), ilECSMappingUtils\getAuthModeSelection(), ilSoapAdministration\getNIC(), ilObjUserGUI\getValues(), ilUserImportParser\importEndTag(), ilUserTableGUI\initFilter(), and ilUserImportParser\verifyEndTag().
|
static |
Definition at line 133 of file class.ilAuthUtils.php.
References $_GET, $_POST, $DIC, $ilDB, $r, $row, ilAuthModeDetermination\_getInstance(), AUTH_ECS, AUTH_INACTIVE, AUTH_MULTIPLE, ilAuthFactory\CONTEXT_ECS, ilDBConstants\FETCHMODE_OBJECT, ilLoggerFactory\getLogger(), and ilAuthFactory\setContext().
|
static |
Definition at line 498 of file class.ilAuthUtils.php.
References $default, $DIC, $ilSetting, $lng, PHPMailer\PHPMailer\$options, $server, ilLDAPServer\_getActiveServerList(), ilRadiusSettings\_getInstance(), AUTH_APACHE, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, getAuthPlugins(), and ilLDAPServer\getInstanceByServerId().
Referenced by ilStartUpGUI\initStandardLoginForm().
|
static |
Definition at line 462 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, ilLDAPServer\_getActiveServerList(), ilRadiusSettings\_getInstance(), and getAuthPlugins().
Referenced by ilStartUpGUI\doStandardAuthentication(), and ilStartUpGUI\initStandardLoginForm().
|
static |
Check if an external account name is required.
That's the case if Radius,LDAP, CAS or SOAP is active
public
Definition at line 573 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, ilLDAPServer\_getActiveServerList(), ilAuthProviderLTI\getActiveAuthModes(), ilSamlIdp\getActiveIdpList(), and ilOpenIdConnectSettings\getInstance().
Referenced by ilObjUserGUI\getValues(), and ilObjUserGUI\saveObject().
|
static |
Check if chosen auth mode needs an external account entry.
public
int | auth_mode |
Definition at line 653 of file class.ilAuthUtils.php.
References $DIC, $ilSetting, AUTH_APACHE, and AUTH_LOCAL.
Referenced by ilObjUser\isPasswordChangeDemanded(), and ilObjUser\isPasswordExpired().
|
static |
string | $a_auth_key | |
string | $auth_name |
Definition at line 835 of file class.ilAuthUtils.php.
References $DIC, $idp, $lng, $server, AUTH_LDAP, AUTH_PROVIDER_LTI, AUTH_SAML, ilSamlIdp\getIdpIdByAuthMode(), ilSamlIdp\getInstanceByIdpId(), ilLDAPServer\getInstanceByServerId(), ilLDAPServer\getServerIdByAuthMode(), ilAuthProviderLTI\getServerIdByAuthMode(), and ilAuthProviderLTI\lookupConsumer().
Referenced by ilUserTableGUI\fillRow(), ilObjUserGUI\getValues(), and ilUserTableGUI\initFilter().
|
static |
Get active enabled auth plugins.
Definition at line 811 of file class.ilAuthUtils.php.
References $GLOBALS, and IL_COMP_SERVICE.
Referenced by _getMultipleAuthModeOptions(), _hasMultipleAuthenticationMethods(), ilAuthProviderFactory\getProviderByAuthMode(), ilObjAuthSettingsGUI\initAuthModeDetermination(), and ilAuthModeDetermination\read().
|
static |
Definition at line 93 of file class.ilAuthUtils.php.
References $_GET, $GLOBALS, AUTH_ECS, ilAuthFrontendFactory\CONTEXT_STANDARD_FORM, ilAuthStatus\getInstance(), ilInitialisation\goToPublicSection(), ilAuthStatus\STATUS_AUTHENTICATED, and ilAuthStatus\STATUS_AUTHENTICATION_FAILED.
Referenced by ilInitialisation\resumeUserSession().
|
static |
|
static |
Check if authentication is should be forced.
Definition at line 85 of file class.ilAuthUtils.php.
References $_GET.
Referenced by ilInitialisation\resumeUserSession().
|
static |
Check if local password validation is enabled for a specific auth_mode.
int | $a_authmode |
Definition at line 686 of file class.ilAuthUtils.php.
References $DIC, $idp, $ilSetting, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_RADIUS, AUTH_SAML, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilSamlIdp\getIdpIdByAuthMode(), and ilSamlIdp\getInstanceByIdpId().
|
static |
Check if password modification is enabled.
int | $a_authmode |
Definition at line 730 of file class.ilAuthUtils.php.
References $DIC, $idp, $ilSetting, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_RADIUS, AUTH_SAML, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilSamlIdp\getIdpIdByAuthMode(), and ilSamlIdp\getInstanceByIdpId().
Referenced by ilPersonalSettingsGUI\allowPasswordChange(), and supportsLocalPasswordValidation().
|
static |
Check if local password validation is supported.
object | $a_authmode |
Definition at line 777 of file class.ilAuthUtils.php.
References AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID_CONNECT, AUTH_PROVIDER_LTI, AUTH_RADIUS, AUTH_SAML, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, isPasswordModificationEnabled(), LOCAL_PWV_FULL, LOCAL_PWV_NO, and LOCAL_PWV_USER.
Referenced by ilWebDAVUtil\isLocalPasswordInstructionRequired().
const ilAuthUtils::LOCAL_PWV_FULL = 1 |
Definition at line 70 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
const ilAuthUtils::LOCAL_PWV_NO = 2 |
Definition at line 71 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
const ilAuthUtils::LOCAL_PWV_USER = 3 |
Definition at line 72 of file class.ilAuthUtils.php.
Referenced by ilWebDAVUtil\isLocalPasswordInstructionRequired(), and supportsLocalPasswordValidation().