ILIAS
Release_4_2_x_branch Revision 61807
|
static utility functions used to manage authentication modes More...
Public Member Functions | |
_initAuth () | |
initialises $ilAuth | |
_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 |
Static Public Member Functions | |
static | _getAuthModeName ($a_auth_key) |
static | _hasMultipleAuthenticationMethods () |
static | _getMultipleAuthModeOptions ($lng) |
static | _isExternalAccountEnabled () |
Check if an external account name is required. | |
static | _allowPasswordModificationByAuthMode ($a_auth_mode) |
Allow password modification. | |
static | _needsExternalAccountByAuthMode ($a_auth_mode) |
Check if chosen auth mode needs an external account entry. | |
static | isPasswordModificationEnabled ($a_authmode) |
Check if password modification is enabled. | |
static | supportsLocalPasswordValidation ($a_authmode) |
Check if local password validation is supported. |
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 56 of file class.ilAuthUtils.php.
|
static |
Allow password modification.
public
int | auth_mode |
Definition at line 633 of file class.ilAuthUtils.php.
References AUTH_ECS, AUTH_LDAP, AUTH_OPENID, and AUTH_RADIUS.
Referenced by ilPasswordInputGUI\checkInput(), ilObjUserGUI\editOldObject(), ilObjUserGUI\updateObject(), and ilObjUserGUI\updateObjectOld().
ilAuthUtils::_generateLogin | ( | $a_login | ) |
generate free login by starting with a default string and adding postfix numbers
Definition at line 485 of file class.ilAuthUtils.php.
References $ilDB.
Referenced by ilOpenIdAttributeToUser\create(), ilRadiusAttributeToUser\create(), ilAuthContainerECS\createUser(), ilCASAuth\login(), ilAuthContainerCAS\loginObserver(), ilAuthContainerSOAP\loginObserver(), and ilLDAPAttributeToUser\usersToXML().
ilAuthUtils::_getActiveAuthModes | ( | ) |
Definition at line 431 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(), ilObjUserGUI\editOldObject(), ilSoapAdministration\getNIC(), and ilObjUserGUI\initForm().
ilAuthUtils::_getAllAuthModes | ( | ) |
Definition at line 466 of file class.ilAuthUtils.php.
References _getAuthModeName(), AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID, AUTH_RADIUS, AUTH_SHIBBOLETH, and AUTH_SOAP.
Referenced by ilObjAuthSettingsGUI\authSettingsObject().
ilAuthUtils::_getAuthMode | ( | $a_auth_mode, | |
$a_db_handler = '' |
|||
) |
Definition at line 326 of file class.ilAuthUtils.php.
References $ilDB, $ilSetting, AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, and AUTH_SOAP.
Referenced by ilSoapUserAdministration\__validateUserData(), _getAuthModeOfUser(), ilPasswordInputGUI\checkInput(), ilObjUserGUI\editOldObject(), ilObjUser\getAuthMode(), ilObjUserGUI\updateObject(), and ilObjUserGUI\updateObjectOld().
|
static |
Definition at line 382 of file class.ilAuthUtils.php.
References AUTH_APACHE, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, and AUTH_SOAP.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilObjUser\_checkExternalAuthAccount(), _getAllAuthModes(), ilObjUser\_getExternalAccountsByAuthMode(), ilObjAuthSettingsGUI\authSettingsObject(), ilObjUserGUI\editOldObject(), ilLDAPServer\getAuthenticationMappingKey(), ilSoapAdministration\getNIC(), ilUserImportParser\importEndTag(), ilObjUserGUI\initForm(), ilLDAPQuery\parseAuthMode(), and ilUserImportParser\verifyEndTag().
ilAuthUtils::_getAuthModeOfUser | ( | $a_username, | |
$a_password, | |||
$a_db_handler = '' |
|||
) |
Definition at line 274 of file class.ilAuthUtils.php.
References $_GET, $_POST, $GLOBALS, $ilDB, $row, _getAuthMode(), ilAuthModeDetermination\_getInstance(), AUTH_ECS, AUTH_INACTIVE, AUTH_MULTIPLE, AUTH_OPENID, ilAuthFactory\CONTEXT_ECS, ilAuthFactory\CONTEXT_OPENID, DB_FETCHMODE_OBJECT, and ilAuthFactory\setContext().
Referenced by _initAuth().
|
static |
Definition at line 533 of file class.ilAuthUtils.php.
References $_REQUEST, $ilSetting, $lng, ilLDAPServer\_getFirstActiveServer(), ilRadiusSettings\_getInstance(), AUTH_APACHE, AUTH_LDAP, AUTH_LOCAL, and AUTH_RADIUS.
Referenced by ilStartUpGUI\showLoginForm().
|
static |
Definition at line 511 of file class.ilAuthUtils.php.
References $ilSetting, ilLDAPServer\_getActiveServerList(), and ilRadiusSettings\_getInstance().
Referenced by ilStartUpGUI\showLoginForm().
ilAuthUtils::_initAuth | ( | ) |
initialises $ilAuth
Definition at line 66 of file class.ilAuthUtils.php.
References $_GET, $_POST, $_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(), ilAuthFactory\setContext(), and WebDAV_Authentication.
Referenced by ilInitialisation\goToPublicSection().
|
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 592 of file class.ilAuthUtils.php.
References $ilSetting, ilLDAPServer\_getActiveServerList(), and ilOpenIdSettings\getInstance().
Referenced by ilObjUserGUI\editOldObject(), ilObjUserGUI\initForm(), and ilObjUserGUI\saveObject().
|
static |
Check if chosen auth mode needs an external account entry.
public
int | auth_mode |
Definition at line 655 of file class.ilAuthUtils.php.
References AUTH_LOCAL.
Referenced by ilSoapUserAdministration\__validateUserData(), ilObjUser\isPasswordChangeDemanded(), and ilObjUserGUI\updateObjectOld().
|
static |
Check if password modification is enabled.
object | $a_authmode |
Definition at line 671 of file class.ilAuthUtils.php.
References $ilSetting, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_OPENID, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, and AUTH_SOAP.
Referenced by ilPersonalSettingsGUI\allowPasswordChange(), and supportsLocalPasswordValidation().
|
static |
Check if local password validation is supported.
object | $a_authmode |
Definition at line 709 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().
const ilAuthUtils::LOCAL_PWV_FULL = 1 |
Definition at line 58 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
const ilAuthUtils::LOCAL_PWV_NO = 2 |
Definition at line 59 of file class.ilAuthUtils.php.
Referenced by supportsLocalPasswordValidation().
const ilAuthUtils::LOCAL_PWV_USER = 3 |
Definition at line 60 of file class.ilAuthUtils.php.
Referenced by ilDAVUtils\isLocalPasswordInstructionRequired(), and supportsLocalPasswordValidation().