ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Storage driver for fetching login data from a database. More...
Public Member Functions | |
ilAuthContainerDatabase ($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... | |
![]() | |
Auth_Container_MDB2 ($dsn) | |
Constructor of the container class. More... | |
_connect ($dsn) | |
Connect to database by using the given DSN string. More... | |
_prepare () | |
Prepare database connection. More... | |
query ($query) | |
Prepare query to the database. More... | |
_setDefaults () | |
Set some default options. More... | |
_parseOptions ($array) | |
Parse options passed to the container class. More... | |
_quoteDBFields () | |
Quote the db_fields option to avoid the possibility of SQL injection. More... | |
fetchData ($username, $password, $isChallengeResponse=false) | |
Get user information from database. More... | |
listUsers () | |
Returns a list of users from the container. More... | |
addUser ($username, $password, $additional="") | |
Add user to the storage container. More... | |
removeUser ($username) | |
Remove user from the storage container. More... | |
changePassword ($username, $password) | |
Change password for user in the storage container. More... | |
supportsChallengeResponse () | |
Determine if this container supports password authentication with challenge response. More... | |
getCryptType () | |
Returns the selected crypt type for this container. More... | |
![]() | |
Auth_Container () | |
Constructor. More... | |
fetchData ($username, $password, $isChallengeResponse=false) | |
Fetch data from storage container. More... | |
verifyPassword ($password1, $password2, $cryptType="md5") | |
Crypt and verfiy the entered password. More... | |
supportsChallengeResponse () | |
Returns true if the container supports Challenge Response password authentication. More... | |
getCryptType () | |
Returns the crypt current crypt type of the container. More... | |
listUsers () | |
List all users that are available from the storage container. More... | |
getUser ($username) | |
Returns a user assoc array. More... | |
addUser ($username, $password, $additional=null) | |
Add a new user to the storage container. More... | |
removeUser ($username) | |
Remove user from the storage container. More... | |
changePassword ($username, $password) | |
Change password for user in the storage container. More... | |
log ($message, $level=AUTH_LOG_DEBUG) | |
Log a message to the Auth log. More... | |
![]() | |
loginObserver ($a_username, $a_auth) | |
Called after successful login. More... | |
failedLoginObserver ($a_username, $a_auth) | |
Called after failed login. More... | |
checkAuthObserver ($a_username, $a_auth) | |
Called after check auth requests. More... | |
logoutObserver ($a_username, $a_auth) | |
Called after logout. More... | |
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. More... | |
Static Public Member Functions | |
static | toUsernameWithoutDomain ($username) |
Static function removes Microsoft domain name from username. More... | |
Private Attributes | |
$isObserversEnabled | |
Additional Inherited Members | |
![]() | |
$options = array() | |
$db = null | |
$dsn = '' | |
$activeUser = '' | |
![]() | |
$activeUser = "" | |
User that is currently selected from the storage container. More... | |
$_auth_obj = null | |
The Auth object this container is attached to. More... | |
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::failedLoginObserver | ( | ) |
Called from Auth after failed login.
string | username |
Definition at line 126 of file class.ilAuthContainerDatabase.php.
References $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::ilAuthContainerDatabase | ( | $dsn | ) |
Definition at line 38 of file class.ilAuthContainerDatabase.php.
References Auth_Container_MDB2\$dsn, and Auth_Container_MDB2\Auth_Container_MDB2().
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 $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().