ILIAS
Release_4_0_x_branch Revision 61816
|
Public Member Functions | |
Auth_Container_File ($filename) | |
Constructor of the container class. | |
fetchData ($user, $pass) | |
Authenticate an user. | |
listUsers () | |
List all available users. | |
addUser ($user, $pass, $additional='') | |
Add a new user to the storage container. | |
removeUser ($user) | |
Remove user from the storage container. | |
changePassword ($username, $password) | |
Change password for user in the storage container. | |
& | _load () |
Load and initialize the File_Passwd object. | |
_setDefaults () | |
Set some default options. | |
_parseOptions ($array) | |
Parse options passed to the container class. | |
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. | |
getUser ($username) | |
Returns a user assoc array. | |
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 | |
$pwfile = '' | |
$options = array() | |
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. |
& Auth_Container_File::_load | ( | ) |
Load and initialize the File_Passwd object.
Definition at line 257 of file File.php.
References $res, AUTH_LOG_DEBUG, PEAR\isError(), and Auth_Container\log().
Referenced by addUser(), changePassword(), listUsers(), and removeUser().
Auth_Container_File::_parseOptions | ( | $array | ) |
Parse options passed to the container class.
private
array |
Definition at line 302 of file File.php.
References $key.
Referenced by Auth_Container_File().
Auth_Container_File::_setDefaults | ( | ) |
Set some default options.
private
Definition at line 288 of file File.php.
Referenced by Auth_Container_File().
Auth_Container_File::addUser | ( | $user, | |
$pass, | |||
$additional = '' |
|||
) |
Add a new user to the storage container.
string | username |
string | password |
mixed | Additional parameters to File_Password_*::addUser() |
Reimplemented from Auth_Container.
Definition at line 159 of file File.php.
References $params, $pass, $res, $user, _load(), AUTH_LOG_DEBUG, PEAR\isError(), and Auth_Container\log().
Auth_Container_File::Auth_Container_File | ( | $filename | ) |
Constructor of the container class.
string | $filename | path to passwd file |
Definition at line 86 of file File.php.
References $filename, _parseOptions(), and _setDefaults().
Auth_Container_File::changePassword | ( | $username, | |
$password | |||
) |
Change password for user in the storage container.
string | Username |
string | The new password |
Reimplemented from Auth_Container.
Definition at line 228 of file File.php.
References $password, $res, _load(), AUTH_LOG_DEBUG, PEAR\isError(), and Auth_Container\log().
Auth_Container_File::fetchData | ( | $user, | |
$pass | |||
) |
Authenticate an user.
string | username |
string | password |
Definition at line 108 of file File.php.
References $pass, $user, AUTH_LOG_DEBUG, and Auth_Container\log().
Auth_Container_File::listUsers | ( | ) |
List all available users.
Reimplemented from Auth_Container.
Definition at line 122 of file File.php.
References $key, _load(), AUTH_LOG_DEBUG, PEAR\isError(), and Auth_Container\log().
Auth_Container_File::removeUser | ( | $user | ) |
Remove user from the storage container.
string | Username |
Reimplemented from Auth_Container.
Definition at line 198 of file File.php.
References $res, $user, _load(), AUTH_LOG_DEBUG, PEAR\isError(), and Auth_Container\log().