PHP Class Horde_Auth_Radius, horde

This class requires the 'radius' PECL extension: http://pecl.php.net/package/radius
Author: Michael Slusarz ([email protected])
Inheritance: extends Horde_Auth_Base
Datei anzeigen Open project: horde/horde

Public Methods

Method Description
__construct ( array $params = [] ) Constructor.

Protected Methods

Method Description
_authenticate ( string $username, array $credentials ) Find out if a set of login credentials are valid.

Method Details

__construct() public method

Constructor.
public __construct ( array $params = [] )
$params array Connection parameters.
'host' - (string) [REQUIRED] The RADIUS host to use (IP address or
         fully qualified hostname).
'method' - (string) [REQUIRED] The RADIUS method to use for validating
           the request.
           Either: 'PAP', 'CHAP_MD5', 'MSCHAPv1', or 'MSCHAPv2'.
           ** CURRENTLY, only 'PAP' is supported. **
'nas' - (string) The RADIUS NAS identifier to use.
        DEFAULT: The value of $_SERVER['HTTP_HOST'] or, if not
                 defined, then 'localhost'.
'port' - (integer) The port to use on the RADIUS server.
         DEFAULT: Whatever the local system identifies as the
                  'radius' UDP port
'retries' - (integer) The maximum number of repeated requests to make
            before giving up.
            DEFAULT: 3
'secret' - (string) [REQUIRED] The RADIUS shared secret string for the
           host. The RADIUS protocol ignores all but the leading 128
           bytes of the shared secret.
'suffix' - (string) The domain name to add to unqualified user names.
            DEFAULT: NONE
'timeout' - (integer) The timeout for receiving replies from the server
            (in seconds).
            DEFAULT: 3

_authenticate() protected method

Find out if a set of login credentials are valid.
protected _authenticate ( string $username, array $credentials )
$username string The userId to check.
$credentials array An array of login credentials. For radius, this must contain a password entry.