ILIAS
Release_4_0_x_branch Revision 61816
|
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= '') | |
_getAuthModeName ($a_auth_key) | |
_getActiveAuthModes () | |
_getAllAuthModes () | |
_generateLogin ($a_login) | |
generate free login by starting with a default string and adding postfix numbers |
Static Public Member Functions | |
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 utility functions used to manage authentication modes
Definition at line 64 of file class.ilAuthUtils.php.
|
static |
Allow password modification.
public
int | auth_mode |
Definition at line 616 of file class.ilAuthUtils.php.
References AUTH_ECS, AUTH_LDAP, 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 490 of file class.ilAuthUtils.php.
References $ilDB.
Referenced by ilRadiusAttributeToUser\create(), ilAuthContainerECS\createUser(), ilCASAuth\login(), ilAuthContainerCAS\loginObserver(), and ilLDAPAttributeToUser\usersToXML().
ilAuthUtils::_getActiveAuthModes | ( | ) |
Definition at line 446 of file class.ilAuthUtils.php.
References $ilSetting, ilLDAPServer\_getActiveServerList(), ilECSSettings\_getInstance(), AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, and AUTH_SOAP.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilObjAuthSettingsGUI\authSettingsObject(), ilObjUserGUI\editOldObject(), ilSoapAdministration\getNIC(), and ilObjUserGUI\initForm().
ilAuthUtils::_getAllAuthModes | ( | ) |
Definition at line 474 of file class.ilAuthUtils.php.
References _getAuthModeName(), AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SHIBBOLETH, and AUTH_SOAP.
Referenced by ilObjAuthSettingsGUI\authSettingsObject().
ilAuthUtils::_getAuthMode | ( | $a_auth_mode, | |
$a_db_handler = '' |
|||
) |
Definition at line 353 of file class.ilAuthUtils.php.
References $ilDB, $ilSetting, AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, 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().
ilAuthUtils::_getAuthModeName | ( | $a_auth_key | ) |
Definition at line 403 of file class.ilAuthUtils.php.
References AUTH_CAS, AUTH_ECS, AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, AUTH_SCRIPT, AUTH_SHIBBOLETH, and AUTH_SOAP.
Referenced by ilSoapInstallationInfoXMLWriter\__buildClient(), ilObjUser\_checkExternalAuthAccount(), _getAllAuthModes(), ilObjUser\_getExternalAccountsByAuthMode(), ilObjAuthSettingsGUI\authSettingsObject(), ilObjUserGUI\editOldObject(), ilSoapAdministration\getNIC(), ilUserImportParser\importEndTag(), ilObjUserGUI\initForm(), and ilUserImportParser\verifyEndTag().
ilAuthUtils::_getAuthModeOfUser | ( | $a_username, | |
$a_password, | |||
$a_db_handler = '' |
|||
) |
Definition at line 307 of file class.ilAuthUtils.php.
References $_GET, $_POST, $ilDB, $q, $row, _getAuthMode(), ilAuthModeDetermination\_getInstance(), AUTH_ECS, AUTH_INACTIVE, AUTH_MULTIPLE, ilAuthFactory\CONTEXT_ECS, DB_FETCHMODE_OBJECT, and ilAuthFactory\setContext().
Referenced by _initAuth().
|
static |
Definition at line 529 of file class.ilAuthUtils.php.
References $ilSetting, $lng, ilLDAPServer\_getFirstActiveServer(), ilRadiusSettings\_getInstance(), AUTH_LDAP, AUTH_LOCAL, AUTH_RADIUS, and elseif().
Referenced by ilStartUpGUI\showLogin().
|
static |
Definition at line 516 of file class.ilAuthUtils.php.
References ilLDAPServer\_getActiveServerList(), and ilRadiusSettings\_getInstance().
Referenced by ilStartUpGUI\showLogin().
ilAuthUtils::_initAuth | ( | ) |
initialises $ilAuth
Definition at line 70 of file class.ilAuthUtils.php.
References $_GET, $_POST, $_SESSION, $GLOBALS, $ilAuth, $ilBench, $ilDB, $ilLog, $ilSetting, _getAuthModeOfUser(), AUTH_CAS, AUTH_ECS, AUTH_INACTIVE, AUTH_LDAP, AUTH_LOCAL, AUTH_MODE_INACTIVE, AUTH_MULTIPLE, AUTH_RADIUS, AUTH_SHIBBOLETH, AUTH_SOAP, ilAuthFactory\CONTEXT_CAS, ilAuthFactory\factory(), ilAuthFactory\setContext(), and WebDAV_Authentication.
Referenced by ilInitialisation\goToPublicSection(), and ilInitialisation\initILIAS().
|
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 580 of file class.ilAuthUtils.php.
References $ilSetting, and ilLDAPServer\_getActiveServerList().
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 637 of file class.ilAuthUtils.php.
References AUTH_LOCAL.
Referenced by ilSoapUserAdministration\__validateUserData(), ilObjUser\isPasswordChangeDemanded(), and ilObjUserGUI\updateObjectOld().