ILIAS
Release_3_10_x_branch Revision 61812
|
Storage driver for fetching login data from a database. More...
Public Member Functions | |
ilAuthContainerMDB2 ($dsn) | |
getUser ($username) | |
fetchData ($username, $password, $isChallengeResponse=false) | |
setObserversEnabled ($boolean) | |
Enables/disables the observers of this container. | |
isObserversEnabled () | |
Returns true, if the observers of this container are enabled. | |
loginObserver ($a_username) | |
Called from Auth after successful login. | |
failedLoginObserver () | |
Called from Auth after failed login. |
Static Public Member Functions | |
static | toUsernameWithoutDomain ($username) |
Static function removes Microsoft domain name from username. |
Private Attributes | |
$isObserversEnabled |
Storage driver for fetching login data from a database.
This driver strips leading Microsoft Windows domain names from the user name.
For example: hsw hsw/wrandels and wrandels refer all to the login name wrandels.
This storage driver can use all databases which are supported by the PEAR DB abstraction layer to fetch login data.
Usage note: If you use an ilAuthContainerMDB2 object as the container for an Auth object you MUST call setEnableObservers(true) on the ilAuthContainerMDB2 object. The observers are used to perform actions depending on the success or failure of a login attempt.
Definition at line 25 of file class.ilAuthContainerMDB2.php.
ilAuthContainerMDB2::failedLoginObserver | ( | ) |
Called from Auth after failed login.
string | username |
Definition at line 124 of file class.ilAuthContainerMDB2.php.
References $ilLog.
Referenced by fetchData().
ilAuthContainerMDB2::fetchData | ( | $username, | |
$password, | |||
$isChallengeResponse = false |
|||
) |
Definition at line 49 of file class.ilAuthContainerMDB2.php.
References failedLoginObserver(), isObserversEnabled(), loginObserver(), and toUsernameWithoutDomain().
ilAuthContainerMDB2::getUser | ( | $username | ) |
Definition at line 41 of file class.ilAuthContainerMDB2.php.
References toUsernameWithoutDomain().
ilAuthContainerMDB2::ilAuthContainerMDB2 | ( | $dsn | ) |
Definition at line 36 of file class.ilAuthContainerMDB2.php.
ilAuthContainerMDB2::isObserversEnabled | ( | ) |
Returns true, if the observers of this container are enabled.
Definition at line 99 of file class.ilAuthContainerMDB2.php.
References $isObserversEnabled.
Referenced by fetchData(), and setObserversEnabled().
ilAuthContainerMDB2::loginObserver | ( | $a_username | ) |
Called from Auth after successful login.
string | username |
Definition at line 110 of file class.ilAuthContainerMDB2.php.
References $ilLog.
Referenced by fetchData().
ilAuthContainerMDB2::setObserversEnabled | ( | $boolean | ) |
Enables/disables the observers of this container.
Definition at line 91 of file class.ilAuthContainerMDB2.php.
References isObserversEnabled().
|
static |
Static function removes Microsoft domain name from username.
Definition at line 71 of file class.ilAuthContainerMDB2.php.
Referenced by fetchData(), ilObjUser\getLoginFromAuth(), and getUser().
|
private |
Definition at line 34 of file class.ilAuthContainerMDB2.php.
Referenced by isObserversEnabled().