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

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

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

kadm5_get_principal

(PECL kadm5 >= 0.2.3) Gets the principal's entries from the Kerberos database array kadm5_get_principal ( resource $handle, string $principal ) Gets the principal's entries from the Kerberos database. Parameters: handle A KADM5 handle. principal The principal. Returns: Returns array of options containing the

radius_acct_open

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

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

kadm5_init_with_password

(PECL kadm5 >= 0.2.3) Opens a connection to the KADM5 library resource kadm5_init_with_password ( string $admin_server, string $realm, string $principal, string $password ) Opens a connection with the KADM5 library using the principal and the given password to obtain initial credentials from the admin_server. Parameters: admin_server The server.

kadm5_get_principals

(PECL kadm5 >= 0.2.3) Gets all principals from the Kerberos database array kadm5_get_principals ( resource $handle ) kadm5_get_principals() returns an array containing the principals's names. Parameters: handle A KADM5 handle. Returns: Returns array of principals on success or FALSE on failure.

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_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.