PHP Radius Functions

EditRocket provides the following information on Radius functions in the PHP source code builder.

resource radius_acct_open ( void ) -

bool radius_add_server ( resource $radius_handle , string $hostname , int $port , string $secret , int $timeout , int $max_tries ) -

resource radius_auth_open ( void ) -

bool radius_close ( resource $radius_handle ) - It is not needed to call this function because php frees all resources at the end of each request.

bool radius_config ( resource $radius_handle , string $file ) - Before issuing any Radius requests, the library must be made aware of the servers it can contact. The easiest way to configure the library is to call radius_config().

bool radius_create_request ( resource $radius_handle , int $type ) - A Radius request consists of a code specifying the kind of request, and zero or more attributes which provide additional information. To begin constructing a new request, call radius_create_request().

string radius_cvt_addr ( string $data ) -

int radius_cvt_int ( string $data ) -

string radius_cvt_string ( string $data ) -

string radius_demangle ( resource $radius_handle , string $mangled ) - Some data (Passwords, MS-CHAPv1 MPPE-Keys) is mangled for security reasons, and must be demangled before you can use them.

string radius_demangle_mppe_key ( resource $radius_handle , string $mangled ) -

mixed radius_get_attr ( resource $radius_handle ) - Like Radius requests, each response may contain zero or more attributes.

array radius_get_vendor_attr ( string $data ) -

bool radius_put_addr ( resource $radius_handle , int $type , string $addr ) -

bool radius_put_attr ( resource $radius_handle , int $type , string $value ) -

bool radius_put_int ( resource $radius_handle , int $type , int $value ) -

bool radius_put_string ( resource $radius_handle , int $type , string $value ) -

bool radius_put_vendor_addr ( resource $radius_handle , int $vendor , int $type , string $addr ) -

bool radius_put_vendor_attr ( resource $radius_handle , int $vendor , int $type , string $value ) -

bool radius_put_vendor_int ( resource $radius_handle , int $vendor , int $type , int $value ) -

bool radius_put_vendor_string ( resource $radius_handle , int $vendor , int $type , string $value ) -

string radius_request_authenticator ( resource $radius_handle ) - The request authenticator is needed for demangling mangled data like passwords and encryption-keys.

int radius_send_request ( resource $radius_handle ) - After the Radius request has been constructed, it is sent by radius_send_request().

string radius_server_secret ( resource $radius_handle ) - The shared secret is needed as salt for demangling mangled data like passwords and encryption-keys.

string radius_strerror ( resource $radius_handle ) - If Radius-functions fail then they record an error message. This error message can be retrieved with this function.