ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Storage driver for fetching login data from a database. More...
Public Member Functions | |
__construct ($dsn) | |
getUser ($username) | |
fetchData ($username, $password, $isChallengeResponse=false) | |
setObserversEnabled ($boolean) | |
Enables/disables the observers of this container. More... | |
isObserversEnabled () | |
Returns true, if the observers of this container are enabled. More... | |
loginObserver ($a_username) | |
Called from Auth after successful login. More... | |
failedLoginObserver () | |
Called from Auth after failed login. More... | |
Static Public Member Functions | |
static | toUsernameWithoutDomain ($username) |
Static function removes Microsoft domain name from username. More... | |
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 27 of file class.ilAuthContainerDatabase.php.
ilAuthContainerDatabase::__construct | ( | $dsn | ) |
Definition at line 38 of file class.ilAuthContainerDatabase.php.
ilAuthContainerDatabase::failedLoginObserver | ( | ) |
Called from Auth after failed login.
string | username |
Definition at line 126 of file class.ilAuthContainerDatabase.php.
References $_SERVER, and $ilLog.
Referenced by fetchData().
ilAuthContainerDatabase::fetchData | ( | $username, | |
$password, | |||
$isChallengeResponse = false |
|||
) |
Definition at line 51 of file class.ilAuthContainerDatabase.php.
References failedLoginObserver(), isObserversEnabled(), loginObserver(), and toUsernameWithoutDomain().
ilAuthContainerDatabase::getUser | ( | $username | ) |
Definition at line 43 of file class.ilAuthContainerDatabase.php.
References toUsernameWithoutDomain().
ilAuthContainerDatabase::isObserversEnabled | ( | ) |
Returns true, if the observers of this container are enabled.
Definition at line 101 of file class.ilAuthContainerDatabase.php.
References $isObserversEnabled.
Referenced by fetchData(), and setObserversEnabled().
ilAuthContainerDatabase::loginObserver | ( | $a_username | ) |
Called from Auth after successful login.
string | username |
Definition at line 112 of file class.ilAuthContainerDatabase.php.
References $_SERVER, and $ilLog.
Referenced by fetchData().
ilAuthContainerDatabase::setObserversEnabled | ( | $boolean | ) |
Enables/disables the observers of this container.
Definition at line 93 of file class.ilAuthContainerDatabase.php.
References isObserversEnabled().
|
static |
Static function removes Microsoft domain name from username.
Definition at line 73 of file class.ilAuthContainerDatabase.php.
Referenced by fetchData(), and getUser().
|
private |
Definition at line 36 of file class.ilAuthContainerDatabase.php.
Referenced by isObserversEnabled().