Previous Class
Solar_Auth_Adapter

Solar_Auth_Adapter_Htpasswd
Overview

Next Page
Constants

Solar_Auth_Adapter_Htpasswd

Authenticate against a file generated by htpasswd.

Format for each line is "username:hashedpassword\n";

Automatically checks against DES, SHA, and apr1-MD5.

SECURITY NOTE: Default DES encryption will only check up to the first 8 characters of a password; chars after 8 are ignored. This means that if the real password is "atechars", the word "atecharsnine" would be valid. This is bad. As a workaround, if the password provided by the user is longer than 8 characters, and DES encryption is being used, this class will not validate it.

Catalog

This class is part of the Solar_Auth package.

Inheritance:

Constants

None.

Public Properties

These are all the public properties in the Solar_Auth_Adapter_Htpasswd class.

You can also view the list of all public, protected, and private properties.

$active
The Unix time at which the authenticated handle was last valid.
$allow
Whether or not to allow authentication actions (login/logout).
$email
The email address of the currently authenticated user.
$handle
The currently authenticated user handle.
$initial
The Unix time at which the handle was initially authenticated.
$moniker
The "display name" or "full name" of the currently authenticated user.
$status
The status code of the current user authentication.
$uid
The numeric user ID for the currently authenticated user.
$uri
The URI for the currently authenticated user.

Public Methods

These are all the public methods in the Solar_Auth_Adapter_Htpasswd class.

You can also view the list of all public, protected, and private methods.

__construct()
Constructor.
__destruct()
Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().
apiVersion()
Reports the API version for this class.
dump()
Convenience method for getting a dump the whole object, or one of its properties, or an external variable.
getFlash()
Retrieves a "read-once" session value for Solar_Auth.
isLoginRequest()
Tells if the current page load appears to be the result of an attempt to log in.
isLogoutRequest()
Tells if the current page load appears to be the result of an attempt to log out.
isValid()
Tells whether the current authentication is valid.
locale()
Looks up class-specific locale strings based on a key.
processLogin()
Processes login attempts and sets user credentials.
processLogout()
Processes logout attempts.
reset()
Resets any authentication data in the session.
start()
Starts a session with authentication.
updateIdleExpire()
Updates idle and expire times, invalidating authentication if they are exceeded.