ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
static utility functions used to manage authentication modes More...
Static Public Member Functions | |
static | initSession () |
Initialize session. More... | |
static | handleForcedAuthentication () |
static | _initAuth () |
initialises $ilAuth More... | |
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) |
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 63 of file class.ilAuthUtils.php.
|
static |
Allow password modification.
public
int | auth_mode |
Definition at line 807 of file class.ilAuthUtils.php.
References AUTH_ECS, AUTH_LDAP, 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 611 of file class.ilAuthUtils.php.
Referenced by ilCASAttributeToUser\create(), ilRadiusAttributeToUser\create(), ilAuthProviderApache\createNewAccount(), ilAuthProviderECS\createUser(), ilAuthContainerECS\createUser(), ilCASAuth\login(), ilAuthContainerCAS\loginObserver(), ilAuthContainerSOAP\loginObserver(), and ilLDAPAttributeToUser\usersToXML().
|
static |
Definition at line 533 of file class.ilAuthUtils.php.
References $ilSetting, ilLDAPServer\_getActiveServerList(), array, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, and ilECSServerSettings\getInstance().
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilObjAuthSettingsGUI\authSettingsObject(), ilSoapAdministration\getNIC(), and ilObjUserGUI\getValues().
|
static |
Definition at line 576 of file class.ilAuthUtils.php.
References $ret, _getAuthModeName(), ilLDAPServer\_getServerList(), array, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SHIBBOLETH, and AUTH_SOAP.
Referenced by ilObjAuthSettingsGUI\authSettingsObject().
|
static |
Definition at line 419 of file class.ilAuthUtils.php.
References $ilDB, $ilSetting, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LOCAL, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, and ilLDAPServer\getKeyByAuthMode().
Referenced by ilPasswordInputGUI\checkInput(), ilObjUser\getAuthMode(), ilAuthContainerMDB2\loginObserver(), and ilObjUserGUI\updateObject().
|
static |
Definition at line 484 of file class.ilAuthUtils.php.
References AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, 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(), and ilUserImportParser\verifyEndTag().
|
static |
Definition at line 369 of file class.ilAuthUtils.php.
References $_GET, $_POST, $ilDB, $r, $row, ilAuthModeDetermination\_getInstance(), AUTH_ECS, AUTH_INACTIVE, AUTH_MULTIPLE, ilAuthFactory\CONTEXT_ECS, ilDBConstants\FETCHMODE_OBJECT, ilLoggerFactory\getLogger(), and ilAuthFactory\setContext().
Referenced by _initAuth().
|
static |
Definition at line 674 of file class.ilAuthUtils.php.
References $ilSetting, $lng, $options, $server, ilLDAPServer\_getActiveServerList(), ilRadiusSettings\_getInstance(), array, AUTH_APACHE, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, getAuthPlugins(), and ilLDAPServer\getInstanceByServerId().
Referenced by ilStartUpGUI\initStandardLoginForm().
|
static |
Definition at line 637 of file class.ilAuthUtils.php.
References $ilSetting, ilLDAPServer\_getActiveServerList(), ilRadiusSettings\_getInstance(), and getAuthPlugins().
Referenced by ilStartUpGUI\doStandardAuthentication(), ilStartUpGUI\initStandardLoginForm(), and ilStartUpGUI\migrateAccount2().
|
static |
initialises $ilAuth
Definition at line 122 of file class.ilAuthUtils.php.
References $_GET, $_POST, $_SERVER, $_SESSION, $ilBench, $ilDB, $ilSetting, _getAuthModeOfUser(), array, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_INACTIVE, AUTH_LDAP, AUTH_LOCAL, AUTH_MODE_INACTIVE, AUTH_MULTIPLE, AUTH_RADIUS, AUTH_SESSION, AUTH_SHIBBOLETH, AUTH_SOAP, ilSessionControl\checkExpiredSession(), ilAuthFactory\CONTEXT_APACHE, ilAuthFactory\CONTEXT_CAS, defined, ilAuthFactory\factory(), ilAuthFactory\getContext(), ilAuthFactory\getContextOptions(), ilSession\getIdleValue(), ilLoggerFactory\getLogger(), ilLDAPServer\getServerIdByAuthMode(), ilAuthFactory\setContext(), and WebDAV_Authentication.
|
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 757 of file class.ilAuthUtils.php.
References $ilSetting, and ilLDAPServer\_getActiveServerList().
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 830 of file class.ilAuthUtils.php.
References $ilSetting, AUTH_APACHE, and AUTH_LOCAL.
Referenced by ilObjUser\isPasswordChangeDemanded(), and ilObjUser\isPasswordExpired().
|
static |
string | $a_authmode |
Definition at line 995 of file class.ilAuthUtils.php.
References $lng, $server, AUTH_LDAP, ilLDAPServer\getInstanceByServerId(), and ilLDAPServer\getServerIdByAuthMode().
Referenced by ilObjUserGUI\getValues().
|
static |
Get active enabled auth plugins.
Definition at line 970 of file class.ilAuthUtils.php.
References $GLOBALS, array, and IL_COMP_SERVICE.
Referenced by _getMultipleAuthModeOptions(), _hasMultipleAuthenticationMethods(), ilAuthContainerMultiple\fetchData(), ilObjAuthSettingsGUI\initAuthModeDetermination(), and ilAuthModeDetermination\read().
|
static |
Definition at line 78 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 local password validation is enabled for a specific auth_mode.
int | $a_authmode |
Definition at line 862 of file class.ilAuthUtils.php.
References $ilSetting, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, and AUTH_SOAP.
|
static |
Check if password modification is enabled.
int | $a_authmode |
Definition at line 898 of file class.ilAuthUtils.php.
References $ilSetting, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, and AUTH_SOAP.
Referenced by ilPersonalSettingsGUI\allowPasswordChange(), ilAuthContainerMDB2\loginObserver(), and supportsLocalPasswordValidation().
|
static |
Check if local password validation is supported.
object | $a_authmode |
Definition at line 937 of file class.ilAuthUtils.php.
References AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, isPasswordModificationEnabled(), LOCAL_PWV_FULL, LOCAL_PWV_NO, and LOCAL_PWV_USER.
Referenced by ilDAVUtils\isLocalPasswordInstructionRequired().
const ilAuthUtils::LOCAL_PWV_FULL = 1 |
Definition at line 65 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
const ilAuthUtils::LOCAL_PWV_NO = 2 |
Definition at line 66 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
const ilAuthUtils::LOCAL_PWV_USER = 3 |
Definition at line 67 of file class.ilAuthUtils.php.
Referenced by ilDAVUtils\isLocalPasswordInstructionRequired(), and supportsLocalPasswordValidation().