Classe: Auth_radius - X-Ref
The Auth_radius class provides a RADIUS implementation of the Horde
authentication system.
This class requires the 'radius' PECL extension.
RADIUS PECL extension: http://pecl.php.net/package/radius
On *nix-y machines, this extension can be installed as follows:<pre>
"pear install radius"</pre>
Then, edit your php.ini file and make sure the following line is present:<pre>
For Windows machines: extension=php_radius.dll
For all others: extension=radius.so</pre>
Required parameters:<pre>
'host' The RADIUS host to use (IP address or fully qualified
hostname).
'method' The RADIUS method to use for validating the request.
Either: 'PAP', 'CHAP_MD5', 'MSCHAPv1', or 'MSCHAPv2'.
** CURRENTLY, only 'PAP' is supported. **
'secret' The RADIUS shared secret string for the host. The
RADIUS protocol ignores all but the leading 128 bytes
of the shared secret.</pre>
Optional parameters:<pre>
'nas' The RADIUS NAS identifier to use.
DEFAULT: The value of $_SERVER['HTTP_HOST'] or, if not
defined, then 'localhost'.
'port' The port to use on the RADIUS server.
DEFAULT: Whatever the local system identifies as the
'radius' UDP port
'retries' The maximum number of repeated requests to make before
giving up.
DEFAULT: 3
'suffix' The domain name to add to unqualified user names.
DEFAULT: NONE
'timeout' The timeout for receiving replies from the server (in
seconds).
DEFAULT: 3 seconds</pre>
$Horde: framework/Auth/Auth/radius.php,v 1.24.8.8 2006/01/01 21:28:07 jan Exp $
Copyright 2002-2006 Michael Slusarz <slusarz@bigworm.colorado.edu>
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.
Auth_radius($params = array()
X-Ref
|
Constructs a new RADIUS authentication object.
param: array $params A hash containing connection parameters.
|
_authenticate($username, $credentials)
X-Ref
|
Find out if a set of login credentials are valid.
param: string $username The userId to check.
param: array $credentials An array of login credentials.
return: boolean Whether or not the credentials are valid.
|