|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
static utility functions used to manage authentication modes More...
Collaboration diagram for ilAuthUtils:Public Member Functions | |
| _initAuth () | |
| initialises $ilAuth More... | |
| _getAuthModeOfUser ($a_username, $a_password, $a_db_handler='') | |
| _getAuthMode ($a_auth_mode, $a_db_handler='') | |
| _getActiveAuthModes () | |
| _getAllAuthModes () | |
| _generateLogin ($a_login) | |
| generate free login by starting with a default string and adding postfix numbers More... | |
Static Public Member Functions | |
| static | _getAuthModeName ($a_auth_key) |
| 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 | 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 64 of file class.ilAuthUtils.php.
|
static |
Allow password modification.
@access public
| int | auth_mode |
Definition at line 768 of file class.ilAuthUtils.php.
References AUTH_ECS, AUTH_LDAP, AUTH_OPENID, and AUTH_RADIUS.
Referenced by ilPasswordInputGUI\checkInput(), ilObjUserGUI\updateObject(), and ilObjUserGUI\updateObjectOld().
Here is the caller graph for this function:| ilAuthUtils::_generateLogin | ( | $a_login | ) |
generate free login by starting with a default string and adding postfix numbers
Definition at line 567 of file class.ilAuthUtils.php.
Referenced by ilRadiusAttributeToUser\create(), ilOpenIdAttributeToUser\create(), ilAuthContainerECS\createUser(), ilCASAuth\login(), ilAuthContainerCAS\loginObserver(), ilAuthContainerSOAP\loginObserver(), and ilLDAPAttributeToUser\usersToXML().
Here is the caller graph for this function:| ilAuthUtils::_getActiveAuthModes | ( | ) |
Definition at line 483 of file class.ilAuthUtils.php.
References $ilSetting, ilLDAPServer\_getActiveServerList(), AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, ilOpenIdSettings\getInstance(), and ilECSServerSettings\getInstance().
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilObjAuthSettingsGUI\authSettingsObject(), ilSoapAdministration\getNIC(), and ilObjUserGUI\initForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthUtils::_getAllAuthModes | ( | ) |
Definition at line 532 of file class.ilAuthUtils.php.
References $ret, _getAuthModeName(), ilLDAPServer\_getServerList(), AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID, AUTH_RADIUS, AUTH_SHIBBOLETH, and AUTH_SOAP.
Referenced by ilObjAuthSettingsGUI\authSettingsObject().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthUtils::_getAuthMode | ( | $a_auth_mode, | |
$a_db_handler = '' |
|||
| ) |
Definition at line 363 of file class.ilAuthUtils.php.
References $ilDB, $ilSetting, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LOCAL, AUTH_OPENID, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, and ilLDAPServer\getKeyByAuthMode().
Referenced by ilSoapUserAdministration\__validateUserData(), _getAuthModeOfUser(), ilPasswordInputGUI\checkInput(), ilAuthContainerMDB2\fetchData(), ilObjUser\getAuthMode(), ilObjUserGUI\updateObject(), and ilObjUserGUI\updateObjectOld().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 431 of file class.ilAuthUtils.php.
References AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, and ilLDAPServer\getAuthModeByKey().
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilObjUser\_checkExternalAuthAccount(), _getAllAuthModes(), ilObjUser\_getExternalAccountsByAuthMode(), ilObjAuthSettingsGUI\authSettingsObject(), ilLDAPServer\getAuthenticationMappingKey(), ilSoapAdministration\getNIC(), ilUserImportParser\importEndTag(), ilObjUserGUI\initForm(), and ilUserImportParser\verifyEndTag().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthUtils::_getAuthModeOfUser | ( | $a_username, | |
| $a_password, | |||
$a_db_handler = '' |
|||
| ) |
Definition at line 308 of file class.ilAuthUtils.php.
References $_GET, $_POST, $ilDB, $r, $row, _getAuthMode(), ilAuthModeDetermination\_getInstance(), AUTH_ECS, AUTH_INACTIVE, AUTH_MULTIPLE, AUTH_OPENID, ilAuthFactory\CONTEXT_ECS, ilAuthFactory\CONTEXT_OPENID, DB_FETCHMODE_OBJECT, ilLoggerFactory\getLogger(), and ilAuthFactory\setContext().
Referenced by _initAuth().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 630 of file class.ilAuthUtils.php.
References $_REQUEST, $ilSetting, $lng, $options, $server, ilLDAPServer\_getActiveServerList(), ilRadiusSettings\_getInstance(), AUTH_APACHE, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, getAuthPlugins(), and ilLDAPServer\getInstanceByServerId().
Referenced by ilStartUpGUI\showLoginForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 593 of file class.ilAuthUtils.php.
References $ilSetting, ilLDAPServer\_getActiveServerList(), ilRadiusSettings\_getInstance(), and getAuthPlugins().
Referenced by ilStartUpGUI\showLoginForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilAuthUtils::_initAuth | ( | ) |
initialises $ilAuth
Definition at line 74 of file class.ilAuthUtils.php.
References $_GET, $_POST, $_SERVER, $_SESSION, $GLOBALS, $ilBench, $ilDB, $ilLog, $ilSetting, _getAuthModeOfUser(), AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_INACTIVE, AUTH_LDAP, AUTH_LOCAL, AUTH_MODE_INACTIVE, AUTH_MULTIPLE, AUTH_OPENID, AUTH_RADIUS, AUTH_SHIBBOLETH, AUTH_SOAP, ilSessionControl\checkExpiredSession(), ilAuthFactory\CONTEXT_APACHE, ilAuthFactory\CONTEXT_CAS, ilAuthFactory\factory(), ilSession\getIdleValue(), ilLoggerFactory\getLogger(), ilLDAPServer\getServerIdByAuthMode(), ilAuthFactory\setContext(), and WebDAV_Authentication.
Referenced by ilInitialisation\goToPublicSection(), and ilInitialisation\initUser().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if an external account name is required.
That's the case if Radius,LDAP, CAS or SOAP is active
@access public
Definition at line 713 of file class.ilAuthUtils.php.
References $ilSetting, ilLDAPServer\_getActiveServerList(), and ilOpenIdSettings\getInstance().
Referenced by ilObjUserGUI\initForm(), and ilObjUserGUI\saveObject().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Check if chosen auth mode needs an external account entry.
@access public
| int | auth_mode |
Definition at line 792 of file class.ilAuthUtils.php.
References AUTH_APACHE, and AUTH_LOCAL.
Referenced by ilSoapUserAdministration\__validateUserData(), ilObjUser\isPasswordChangeDemanded(), and ilObjUserGUI\updateObjectOld().
Here is the caller graph for this function:
|
static |
| string | $a_authmode |
Definition at line 923 of file class.ilAuthUtils.php.
References $lng, $server, AUTH_LDAP, ilLDAPServer\getInstanceByServerId(), and ilLDAPServer\getServerIdByAuthMode().
Referenced by ilObjUserGUI\initForm().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Get active enabled auth plugins.
Definition at line 898 of file class.ilAuthUtils.php.
References $GLOBALS, and IL_COMP_SERVICE.
Referenced by _getMultipleAuthModeOptions(), _hasMultipleAuthenticationMethods(), ilAuthContainerMultiple\fetchData(), ilObjAuthSettingsGUI\initAuthModeDetermination(), and ilAuthModeDetermination\read().
Here is the caller graph for this function:
|
static |
Check if password modification is enabled.
| object | $a_authmode |
Definition at line 824 of file class.ilAuthUtils.php.
References $ilSetting, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, and AUTH_SOAP.
Referenced by ilPersonalSettingsGUI\allowPasswordChange(), ilAuthContainerMDB2\fetchData(), and supportsLocalPasswordValidation().
Here is the caller graph for this function:
|
static |
Check if local password validation is supported.
| object | $a_authmode |
Definition at line 864 of file class.ilAuthUtils.php.
References AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, AUTH_SOAP, isPasswordModificationEnabled(), LOCAL_PWV_FULL, LOCAL_PWV_NO, and LOCAL_PWV_USER.
Referenced by ilDAVUtils\isLocalPasswordInstructionRequired().
Here is the call graph for this function:
Here is the caller graph for this function:| const ilAuthUtils::LOCAL_PWV_FULL = 1 |
Definition at line 66 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
| const ilAuthUtils::LOCAL_PWV_NO = 2 |
Definition at line 67 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
| const ilAuthUtils::LOCAL_PWV_USER = 3 |
Definition at line 68 of file class.ilAuthUtils.php.
Referenced by ilDAVUtils\isLocalPasswordInstructionRequired(), and supportsLocalPasswordValidation().