Property | Type | Description | |
---|---|---|---|
$_capabilities | array | An array of capabilities, so that the driver can report which operations it supports and which it doesn't. | |
$_users | array | Array of usernames and hashed passwords. |
Method | Description | |
---|---|---|
__construct ( array $params = [] ) | Constructor. | |
listUsers ( boolean $sort = false ) : array | Lists all users in the system. | |
transparent ( ) : boolean | Automatic authentication: Find out if the client has HTTP authentication info present. |
Method | Description | |
---|---|---|
_authenticate ( string $userId, array $credentials ) | Find out if a set of login credentials are valid. Only supports htpasswd files with DES passwords right now. |
public __construct ( array $params = [] ) | ||
$params | array | Optional parameters:
'encryption' - (string) Kind of passwords in the .htpasswd file. Either 'crypt-des' (standard crypted htpasswd entries) [DEFAULT] or 'aprmd5'. This information is used if you want to directly authenticate users with this driver, instead of relying on transparent auth. 'htpasswd_file' - (string) TODO |
protected _authenticate ( string $userId, array $credentials ) | ||
$userId | string | The userId to check. |
$credentials | array | An array of login credentials. For IMAP, this must contain a password entry. |
public transparent ( ) : boolean | ||
return | boolean | Whether or not the client is allowed. |
protected array $_capabilities | ||
return | array |
protected array $_users | ||
return | array |