ILIAS
Release_5_0_x_branch Revision 61816
|
Custom PEAR Auth Container for ECS auth checks. More...
Public Member Functions | |
__construct ($a_params=array()) | |
Constructor. | |
getAbreviation () | |
get abbreviation | |
getMID () | |
get mid | |
setMID ($a_mid) | |
setCurrentServer (ilECSSetting $server=null) | |
Set current server. | |
getCurrentServer () | |
Get current server. | |
getServerSettings () | |
Get server settings. | |
fetchData ($a_username, $a_pass) | |
Check for valid ecs_hash. | |
validateHash () | |
Validate ECS hash. | |
loginObserver ($a_username, $a_auth) | |
Called from base class after successful login. | |
failedLoginObserver () | |
Called from base class after failed login. | |
Public Member Functions inherited from Auth_Container | |
Auth_Container () | |
Constructor. | |
fetchData ($username, $password, $isChallengeResponse=false) | |
Fetch data from storage container. | |
verifyPassword ($password1, $password2, $cryptType="md5") | |
Crypt and verfiy the entered password. | |
supportsChallengeResponse () | |
Returns true if the container supports Challenge Response password authentication. | |
getCryptType () | |
Returns the crypt current crypt type of the container. | |
listUsers () | |
List all users that are available from the storage container. | |
getUser ($username) | |
Returns a user assoc array. | |
addUser ($username, $password, $additional=null) | |
Add a new user to the storage container. | |
removeUser ($username) | |
Remove user from the storage container. | |
changePassword ($username, $password) | |
Change password for user in the storage container. | |
log ($message, $level=AUTH_LOG_DEBUG) | |
Log a message to the Auth log. | |
Public Member Functions inherited from ilAuthContainerBase | |
failedLoginObserver ($a_username, $a_auth) | |
Called after failed login. | |
checkAuthObserver ($a_username, $a_auth) | |
Called after check auth requests. | |
logoutObserver ($a_username, $a_auth) | |
Called after logout. | |
supportsCaptchaVerification () | |
Returns whether or not the auth container supports the verification of captchas This should be true for those auth methods, which are available in the default login form. |
Protected Member Functions | |
createUser (ilECSUser $user) | |
create new user | |
updateUser (ilECSUser $user, $a_local_user_id) | |
update existing user | |
resetMailOptions ($a_usr_id) | |
Reset mail options to "local only". |
Protected Attributes | |
$mid = null | |
$abreviation = null | |
$currentServer = null | |
$servers = null | |
$log |
Private Member Functions | |
initECSServices () | |
Init ECS Services private. | |
sendNotification ($user_obj) | |
Send notification. |
Additional Inherited Members | |
Data Fields inherited from Auth_Container | |
$activeUser = "" | |
User that is currently selected from the storage container. | |
$_auth_obj = null | |
The Auth object this container is attached to. |
Custom PEAR Auth Container for ECS auth checks.
Definition at line 34 of file class.ilAuthContainerECS.php.
ilAuthContainerECS::__construct | ( | $a_params = array() | ) |
Constructor.
public
Definition at line 51 of file class.ilAuthContainerECS.php.
References $GLOBALS, initECSServices(), and Auth_Container\log().
|
protected |
create new user
protected
Definition at line 302 of file class.ilAuthContainerECS.php.
References $ilLog, $ilSetting, ilAuthUtils\_generateLogin(), ilObject\_writeImportId(), getAbreviation(), getCurrentServer(), ilECSUser\getEmail(), ilECSUser\getFirstname(), ilECSUser\getImportId(), ilECSUser\getInstitution(), ilECSUser\getLastname(), ilECSUser\getLogin(), IL_PASSWD_CRYPTED, and resetMailOptions().
Referenced by loginObserver().
ilAuthContainerECS::failedLoginObserver | ( | ) |
Called from base class after failed login.
string | username |
Definition at line 289 of file class.ilAuthContainerECS.php.
References Auth_Container\log().
ilAuthContainerECS::fetchData | ( | $a_username, | |
$a_pass | |||
) |
Check for valid ecs_hash.
string | $a_username | |
string | $a_pass |
Definition at line 119 of file class.ilAuthContainerECS.php.
References $GLOBALS, $ilLog, $server, getServerSettings(), setCurrentServer(), and validateHash().
ilAuthContainerECS::getAbreviation | ( | ) |
get abbreviation
public
Definition at line 67 of file class.ilAuthContainerECS.php.
References $abreviation.
Referenced by createUser().
ilAuthContainerECS::getCurrentServer | ( | ) |
Get current server.
Definition at line 100 of file class.ilAuthContainerECS.php.
References $currentServer.
Referenced by createUser(), loginObserver(), sendNotification(), updateUser(), and validateHash().
ilAuthContainerECS::getMID | ( | ) |
get mid
public
Definition at line 77 of file class.ilAuthContainerECS.php.
References $mid.
Referenced by loginObserver().
ilAuthContainerECS::getServerSettings | ( | ) |
Get server settings.
Definition at line 109 of file class.ilAuthContainerECS.php.
References $servers.
Referenced by fetchData().
|
private |
Init ECS Services private.
Definition at line 428 of file class.ilAuthContainerECS.php.
References ilECSServerSettings\getInstance().
Referenced by __construct().
ilAuthContainerECS::loginObserver | ( | $a_username, | |
$a_auth | |||
) |
Called from base class after successful login.
string | username |
Reimplemented from ilAuthContainerBase.
Definition at line 244 of file class.ilAuthContainerECS.php.
References $_GET, $GLOBALS, ilObjUser\_lookupId(), ilObject\_lookupObjIdByImportId(), createUser(), getCurrentServer(), getMID(), Auth_Container\log(), and updateUser().
|
protected |
Reset mail options to "local only".
Definition at line 409 of file class.ilAuthContainerECS.php.
References $options, and IL_MAIL_LOCAL.
Referenced by createUser(), and updateUser().
|
private |
Send notification.
private
Definition at line 441 of file class.ilAuthContainerECS.php.
References $GLOBALS, $lang, ilMail\_getAutoGeneratedMessageString(), ilLanguageFactory\_getLanguage(), and getCurrentServer().
ilAuthContainerECS::setCurrentServer | ( | ilECSSetting | $server = null | ) |
Set current server.
ilECSSetting | $server |
Definition at line 91 of file class.ilAuthContainerECS.php.
References $server.
Referenced by fetchData().
ilAuthContainerECS::setMID | ( | $a_mid | ) |
Definition at line 82 of file class.ilAuthContainerECS.php.
Referenced by validateHash().
|
protected |
update existing user
protected
Definition at line 369 of file class.ilAuthContainerECS.php.
References $ilLog, getCurrentServer(), ilECSUser\getEmail(), ilECSUser\getFirstname(), ilECSUser\getImportId(), ilECSUser\getInstitution(), ilECSUser\getLastname(), and resetMailOptions().
Referenced by loginObserver().
ilAuthContainerECS::validateHash | ( | ) |
Validate ECS hash.
public
string | username |
string | pass |
Definition at line 155 of file class.ilAuthContainerECS.php.
References $_GET, $GLOBALS, $ilLog, $reader, $res, getCurrentServer(), ilECSCommunityReader\getInstanceByServerId(), and setMID().
Referenced by fetchData().
|
protected |
Definition at line 37 of file class.ilAuthContainerECS.php.
Referenced by getAbreviation().
|
protected |
Definition at line 39 of file class.ilAuthContainerECS.php.
Referenced by getCurrentServer().
|
protected |
Definition at line 42 of file class.ilAuthContainerECS.php.
|
protected |
Definition at line 36 of file class.ilAuthContainerECS.php.
Referenced by getMID().
|
protected |
Definition at line 40 of file class.ilAuthContainerECS.php.
Referenced by getServerSettings().