Class Horde_Auth_Radius
The Horde_Auth_Radius class provides a RADIUS implementation of the Horde
authentication system.
This class requires the 'radius' PECL extension: http://pecl.php.net/package/radius
Copyright 2002-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did
not receive this file, http://www.horde.org/licenses/lgpl21
-
Horde_Auth_Base
-
Horde_Auth_Radius
Methods summary
public
|
#
__construct( array $params = array() )
Constructor.
Parameters
- $params
- Connection parameters.
<pre><span class="php-quote">'host'</span> - (string) [REQUIRED] The RADIUS host to <span class="php-keyword1">use</span> (IP address <span class="php-keyword1">or</span>
fully qualified hostname).
<span class="php-quote">'method'</span> - (string) [REQUIRED] The RADIUS method to <span class="php-keyword1">use</span> <span class="php-keyword1">for</span> validating
the request.
Either: <span class="php-quote">'PAP'</span>, <span class="php-quote">'CHAP_MD5'</span>, <span class="php-quote">'MSCHAPv1'</span>, <span class="php-keyword1">or</span> <span class="php-quote">'MSCHAPv2'</span>.
** CURRENTLY, only <span class="php-quote">'PAP'</span> is supported. **
<span class="php-quote">'nas'</span> - (string) The RADIUS NAS identifier to <span class="php-keyword1">use</span>.
<span class="php-keyword1">DEFAULT</span>: The value of <span class="php-var">$_SERVER</span>[<span class="php-quote">'HTTP_HOST'</span>] <span class="php-keyword1">or</span>, <span class="php-keyword1">if</span> not
<span class="php-keyword2">defined</span>, then <span class="php-quote">'localhost'</span>.
<span class="php-quote">'port'</span> - (integer) The port to <span class="php-keyword1">use</span> on the RADIUS server.
<span class="php-keyword1">DEFAULT</span>: Whatever the local <span class="php-keyword2">system</span> identifies <span class="php-keyword1">as</span> the
<span class="php-quote">'radius'</span> UDP port
<span class="php-quote">'retries'</span> - (integer) The maximum number of repeated requests to make
before giving up.
<span class="php-keyword1">DEFAULT</span>: <span class="php-num">3</span>
<span class="php-quote">'secret'</span> - (string) [REQUIRED] The RADIUS shared secret string <span class="php-keyword1">for</span> the
host. The RADIUS protocol ignores all but the leading <span class="php-num">128</span>
bytes of the shared secret.
<span class="php-quote">'suffix'</span> - (string) The domain name to add to unqualified user names.
<span class="php-keyword1">DEFAULT</span>: NONE
<span class="php-quote">'timeout'</span> - (integer) The timeout <span class="php-keyword1">for</span> receiving replies from the server
(in seconds).
<span class="php-keyword1">DEFAULT</span>: <span class="php-num">3</span></pre>
Throws
InvalidArgumentException
Overrides
|
Methods inherited from Horde_Auth_Base
addUser(),
authenticate(),
exists(),
getCredential(),
getError(),
getParam(),
hasCapability(),
isLocked(),
listUsers(),
lockUser(),
removeUser(),
resetPassword(),
setCredential(),
setError(),
transparent(),
unlockUser(),
updateUser(),
validateAuth()
|