ILIAS
eassessment Revision 61809
|
Public Member Functions | |
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 | |
loginObserver ($a_username, $a_auth) | |
Called after successful login. | |
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. |
Data Fields | |
$activeUser = "" | |
User that is currently selected from the storage container. | |
$_auth_obj = null | |
The Auth object this container is attached to. |
Definition at line 39 of file Container.php.
Auth_Container::addUser | ( | $username, | |
$password, | |||
$additional = null |
|||
) |
Add a new user to the storage container.
string | Username |
string | Password |
array | Additional information |
Reimplemented in Auth_Container_DB, Auth_Container_MDB, Auth_Container_MDB2, Auth_Container_File, and Auth_Container_SMBPasswd.
Definition at line 201 of file Container.php.
References AUTH_LOG_DEBUG, AUTH_METHOD_NOT_SUPPORTED, and log().
Auth_Container::Auth_Container | ( | ) |
Constructor.
Has to be overwritten by each storage class
public
Definition at line 68 of file Container.php.
Auth_Container::changePassword | ( | $username, | |
$password | |||
) |
Change password for user in the storage container.
string | Username |
string | The new password |
Reimplemented in Auth_Container_DB, Auth_Container_MDB, Auth_Container_MDB2, Auth_Container_File, and Auth_Container_SMBPasswd.
Definition at line 230 of file Container.php.
References AUTH_LOG_DEBUG, AUTH_METHOD_NOT_SUPPORTED, and log().
Auth_Container::fetchData | ( | $username, | |
$password, | |||
$isChallengeResponse = false |
|||
) |
Fetch data from storage container.
Has to be overwritten by each storage class
public
Reimplemented in Auth_Container_DB, Auth_Container_MDB, Auth_Container_MDB2, ilAuthContainerCAS, Auth_Container_RADIUS, ilAuthContainerSOAP, ilAuthContainerApache, ilAuthContainerDatabase, and ilAuthContainerOpenId.
Definition at line 82 of file Container.php.
References AUTH_LOG_DEBUG, and log().
Auth_Container::getCryptType | ( | ) |
Returns the crypt current crypt type of the container.
Reimplemented in Auth_Container_DB, Auth_Container_MDB, and Auth_Container_MDB2.
Definition at line 147 of file Container.php.
Auth_Container::getUser | ( | $username | ) |
Returns a user assoc array.
Containers which want should overide this
string | The username |
Reimplemented in ilAuthContainerDatabase.
Definition at line 174 of file Container.php.
References AUTH_LOG_DEBUG, AUTH_METHOD_NOT_SUPPORTED, listUsers(), and log().
Auth_Container::listUsers | ( | ) |
List all users that are available from the storage container.
Reimplemented in Auth_Container_DB, Auth_Container_MDB, Auth_Container_MDB2, Auth_Container_Array, Auth_Container_File, and Auth_Container_SMBPasswd.
Definition at line 158 of file Container.php.
References AUTH_LOG_DEBUG, AUTH_METHOD_NOT_SUPPORTED, and log().
Referenced by getUser().
Auth_Container::log | ( | $message, | |
$level = AUTH_LOG_DEBUG |
|||
) |
Log a message to the Auth log.
string | The message |
int |
Definition at line 246 of file Container.php.
Referenced by ilAuthContainerECS\__construct(), ilAuthContainerLDAP\__construct(), Auth_Container_IMAP\_checkServer(), Auth_Container_MDB\_connect(), Auth_Container_MDB2\_connect(), Auth_Container_DB\_connect(), Auth_Container_DBLite\_connect(), Auth_Container_LDAP\_connect(), Auth_Container_LDAP\_disconnect(), Auth_Container_LDAP\_getBaseDN(), Auth_Container_File\_load(), Auth_Container_SMBPasswd\addUser(), Auth_Container_File\addUser(), addUser(), Auth_Container_MDB2\addUser(), Auth_Container_MDB\addUser(), Auth_Container_DB\addUser(), Auth_Container_SMBPasswd\changePassword(), Auth_Container_File\changePassword(), changePassword(), Auth_Container_MDB2\changePassword(), Auth_Container_MDB\changePassword(), Auth_Container_DB\changePassword(), ilAuthContainerMultiple\checkAuthObserver(), ilAuthContainerLDAP\checkGroup(), Auth_Container_LDAP\checkGroup(), ilAuthContainerMultiple\failedLoginObserver(), ilAuthContainerECS\failedLoginObserver(), Auth_Container_vpopmail\fetchData(), fetchData(), ilAuthContainerMultiple\fetchData(), ilAuthContainerLDAP\fetchData(), Auth_Container_SMBPasswd\fetchData(), Auth_Container_File\fetchData(), Auth_Container_Vpopmaild\fetchData(), Auth_Container_KADM5\fetchData(), Auth_Container_SAP\fetchData(), Auth_Container_Pear\fetchData(), Auth_Container_RADIUS\fetchData(), Auth_Container_POP3\fetchData(), Auth_Container_Array\fetchData(), Auth_Container_Multiple\fetchData(), Auth_Container_SOAP\fetchData(), Auth_Container_SOAP5\fetchData(), Auth_Container_IMAP\fetchData(), Auth_Container_DBLite\fetchData(), Auth_Container_MDB2\fetchData(), Auth_Container_MDB\fetchData(), Auth_Container_DB\fetchData(), Auth_Container_LDAP\fetchData(), getUser(), Auth_Container_SMBPasswd\listUsers(), Auth_Container_File\listUsers(), Auth_Container_Array\listUsers(), listUsers(), Auth_Container_MDB2\listUsers(), Auth_Container_MDB\listUsers(), Auth_Container_DB\listUsers(), ilAuthContainerMultiple\loginObserver(), ilAuthContainerECS\loginObserver(), Auth_Container_MDB\query(), Auth_Container_MDB2\query(), Auth_Container_SMBPasswd\removeUser(), Auth_Container_File\removeUser(), removeUser(), Auth_Container_MDB2\removeUser(), Auth_Container_MDB\removeUser(), Auth_Container_DB\removeUser(), and verifyPassword().
Auth_Container::removeUser | ( | $username | ) |
Remove user from the storage container.
string | Username |
Reimplemented in Auth_Container_DB, Auth_Container_MDB, Auth_Container_MDB2, Auth_Container_File, and Auth_Container_SMBPasswd.
Definition at line 215 of file Container.php.
References AUTH_LOG_DEBUG, AUTH_METHOD_NOT_SUPPORTED, and log().
Auth_Container::supportsChallengeResponse | ( | ) |
Returns true if the container supports Challenge Response password authentication.
Reimplemented in Auth_Container_DB, Auth_Container_MDB, and Auth_Container_MDB2.
Definition at line 134 of file Container.php.
Auth_Container::verifyPassword | ( | $password1, | |
$password2, | |||
$cryptType = "md5" |
|||
) |
Crypt and verfiy the entered password.
string | Entered password |
string | Password from the data container (usually this password is already encrypted. |
string | Type of algorithm with which the password from the container has been crypted. (md5, crypt etc.) Defaults to "md5". |
Definition at line 101 of file Container.php.
References AUTH_LOG_DEBUG, and log().
Referenced by Auth_Container_Array\fetchData(), Auth_Container_DBLite\fetchData(), Auth_Container_MDB\fetchData(), Auth_Container_MDB2\fetchData(), and Auth_Container_DB\fetchData().
Auth_Container::$_auth_obj = null |
The Auth object this container is attached to.
public
Definition at line 56 of file Container.php.
Referenced by ilAuthContainerMultiple\fetchData(), and Auth_Container_Multiple\fetchData().
Auth_Container::$activeUser = "" |
User that is currently selected from the storage container.
public
Definition at line 49 of file Container.php.