Class AuthenticatorRadius

Description

Internal wifidog user database authentication source

Located in /classes/AuthenticatorRadius.php (line 60)

Authenticator
   |
   --AuthenticatorRadius
Variable Summary
Method Summary
AuthenticatorRadius __construct ($account_orgin $account_orgin, [$host $host = "localhost"], [$auth_port $auth_port = 1812], [$acct_port $acct_port = 1813], [$secret_key $secret_key = ""], [$encryption_method $encryption_method = "CHAP_MD5"])
void acctStart (mixed $conn_id, [mixed &$errmsg = null])
void acctStop (mixed $conn_id, [mixed &$errmsg = null])
void acctUpdate (mixed $conn_id, mixed $incoming, mixed $outgoing, [mixed &$errmsg = null])
void login (username: $username, password: $password, [mixed &$errmsg = null])
Variables
mixed $mRadius_acct_port (line 64)
  • access: private
mixed $mRadius_auth_port (line 63)
  • access: private
mixed $mRadius_encryption_method (line 66)
  • access: private
mixed $mRadius_hostname (line 62)
  • access: private
mixed $mRadius_secret_key (line 65)
  • access: private

Inherited Variables

Inherited from Authenticator

Authenticator::$mNetwork
Methods
Constructor __construct (line 81)

AuthenticatorRadius constructor

Example: new AuthenticatorRadius(IDRC_ACCOUNT_ORIGIN, "192.168.0.11", 1812, 1813, "secret_key", "CHAP_MD5");

AuthenticatorRadius __construct ($account_orgin $account_orgin, [$host $host = "localhost"], [$auth_port $auth_port = 1812], [$acct_port $acct_port = 1813], [$secret_key $secret_key = ""], [$encryption_method $encryption_method = "CHAP_MD5"])
  • $account_orgin $account_orgin: : The network ID
  • $host $host: : hostname of the RADIUS server
  • $auth_port $auth_port: : Authentication port of the RADIUS server
  • $acct_port $acct_port: : Accounting port of the RADIUS server
  • $secret_key $secret_key: : The secret key between between this client and the server
  • $encryption_method $encryption_method: : The encryption method choosen for the requests

Redefinition of:
Authenticator::__construct()
acctStart (line 223)

Start accounting traffic for the user

$conn_id: The connection id for the connection to work on

void acctStart (mixed $conn_id, [mixed &$errmsg = null])

Redefinition of:
Authenticator::acctStart()
Start accounting traffic for the user
acctStop (line 317)

Final update and stop accounting

$conn_id: The connection id (the token id) for the connection to work on

void acctStop (mixed $conn_id, [mixed &$errmsg = null])

Redefinition of:
Authenticator::acctStop()
Final update and stop accounting
acctUpdate (line 267)

Update traffic counters

$conn_id: The connection id for the connection to work on

void acctUpdate (mixed $conn_id, mixed $incoming, mixed $outgoing, [mixed &$errmsg = null])

Redefinition of:
Authenticator::acctUpdate()
Update traffic counters
login (line 100)

Attempts to login a user against the authentication source. If successfull, returns a User object

void login (username: $username, password: $password, [mixed &$errmsg = null])
  • username: $username: A valid identifying token for the source. Not necessarily unique. For local user, bots username and email are valid.
  • password: $password: Clear text password.

Redefinition of:
Authenticator::login()
Attempts to login a user against the authentication source. If successfull, returns a User object

Inherited Methods

Inherited From Authenticator

Authenticator::__construct()
Authenticator::acctStart()
Authenticator::acctStop()
Authenticator::acctUpdate()
Authenticator::getNetwork()
Authenticator::isRegistrationPermitted()
Authenticator::login()
Authenticator::logout()

Documentation generated on Mon, 26 Dec 2005 12:21:12 +0100 by phpDocumentor 1.3.0RC5