Class: auth_server
Source Location: /security/class.auth_server.inc
Class auth_server
Class Overview
|
Driver for external authentication, such as Apache .htaccess files.
With this driver, the webserver is supposed to handle the authentication. Use with care. ATK will not validate anything so if the server authentication is not set-up properly, this may be a security risk The only check ATK makes is whether the webserver has put a valid username in $_SERVER['PHP_AUTH_USER'].
Located in /security/class.auth_server.inc [line 33]
Wiki documentation
auth_interface
|
--auth_server
Author(s):
Information Tags:
|
Methods
|
Method Summary
| boolean |
canMd5() |
Does this authentication method support md5 encoding of passwords? |
Methods
Does this authentication method support md5 encoding of passwords?
API Tags:
Redefinition of:
- auth_interface::canMd5()
- Does the authentication method support md5 encoding of passwords?
int validateUser(
String
$user, String
$passwd
)
|
|
Authenticate a user.
Parameters:
|
String |
$user: |
The login of the user to authenticate. |
|
String |
$passwd: |
The password of the user. Note: if the canMd5 function of an implementation returns true, $passwd will be passed as an md5 string. |
API Tags:
| Return: | AUTH_SUCCESS - Authentication succesful AUTH_MISMATCH - Authentication failed, wrong user/password combination AUTH_LOCKED - Account is locked, can not login with current username. AUTH_ERROR - Authentication failed due to some error which cannot be solved by just trying again. If you return this value, you *must* also fill the m_fatalError variable. |
Redefinition of:
- auth_interface::validateUser()
- Authenticate a user.