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

kadm5_modify_principal

(PECL kadm5 >= 0.2.3) Modifies a kerberos principal with the given parameters bool kadm5_modify_principal ( resource $handle, string $principal, array $options ) Modifies a principal according to the given options. Parameters: handle A KADM5 handle. principal The principal. options It is possible t

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.