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()
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
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
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
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()