radius_add_server

(PECL radius >= 1.1.0) Adds a server bool radius_add_server ( resource $radius_handle, string $hostname, int $port, string $secret, int $timeout, int $max_tries ) radius_add_server() may be called multiple times, and it may be used together with radius_config(). At most 10 servers may be specified. When multiple servers are given, they are tried in round-robin fashion until a valid response is received, or until each serv

radius_auth_open

(PECL radius >= 1.1.0) Creates a Radius handle for authentication resource radius_auth_open ( void ) Returns: Returns a handle on success, FALSE on error. This function only fails if insufficient memory is available. Examples: radius_auth_open() example <?php $radh = radius_auth_open()     or die ("Could not create ha

radius_close

(PECL radius >= 1.1.0) Frees all ressources 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. Returns: Returns TRUE on success or FALSE on failure.

radius_config

(PECL radius >= 1.1.0) Causes the library to read the given configuration file 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(). radius_config() causes the library to read a configuration file whose format is described in » radius.conf.

radius_create_request

(PECL radius >= 1.1.0) Create accounting or authentication request 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(). Note: Attention: You must call this function, before you can put any attribute!

radius_cvt_addr

(PECL radius >= 1.1.0) Converts raw data to IP-Address string radius_cvt_addr ( string $data ) Examples: radius_cvt_addr() example <?php while ($resa = radius_get_attr($res)) {     if (!is_array($resa)) {         printf ("Error getting attribute: %s\n",  radius_strerror($res));         exit;     }     $attr = $resa['attr'];     $data

radius_cvt_int

(PECL radius >= 1.1.0) Converts raw data to integer int radius_cvt_int ( string $data ) Examples: radius_cvt_int() example <?php while ($resa = radius_get_attr($res)) {     if (!is_array($resa)) {         printf ("Error getting attribute: %s\n",  radius_strerror($res));         exit;     }     $attr = $resa['attr'];     $data = $resa

radius_cvt_string

(PECL radius >= 1.1.0) Converts raw data to string string radius_cvt_string ( string $data ) Examples: radius_cvt_string() example <?php while ($resa = radius_get_attr($res)) {     if (!is_array($resa)) {         printf ("Error getting attribute: %s\n",  radius_strerror($res));         exit;     }     $attr = $resa['attr'];     $data

radius_demangle_mppe_key

(PECL radius >= 1.2.0) Derives mppe-keys from mangled data string radius_demangle_mppe_key ( resource $radius_handle, string $mangled ) When using MPPE with MS-CHAPv2, the send- and recv-keys are mangled (see » RFC 2548), however this function is useless, because I don't think that there is or will be a PPTP-MPPE implementation in PHP. Returns: Returns the demangled string, or FALSE on error.

radius_demangle

(PECL radius >= 1.2.0) Demangles 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. Returns: Returns the demangled string, or FALSE on error.