radius_create_request
(PECL radius >= 1.1.0)
radius_create_request — Create accounting or authentication request
Description
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!
Parameters
-
radius_handle
-
-
type
-
Type is
RADIUS_ACCESS_REQUEST
orRADIUS_ACCOUNTING_REQUEST
.
Return Values
Returns TRUE
on success or FALSE
on failure.
Examples
Example #1 radius_create_request() example
<?php
if (!radius_create_request($res, RADIUS_ACCESS_REQUEST)) {
echo 'RadiusError:' . radius_strerror($res). "\n<br />";
exit;
}
?>
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Службы аутентификации
- Radius
- radius_acct_open
- radius_add_server
- radius_auth_open
- radius_close
- radius_config
- radius_create_request
- radius_cvt_addr
- radius_cvt_int
- radius_cvt_string
- radius_demangle_mppe_key
- radius_demangle
- radius_get_attr
- radius_get_tagged_attr_data
- radius_get_tagged_attr_tag
- radius_get_vendor_attr
- radius_put_addr
- radius_put_attr
- radius_put_int
- radius_put_string
- radius_put_vendor_addr
- radius_put_vendor_attr
- radius_put_vendor_int
- radius_put_vendor_string
- radius_request_authenticator
- radius_salt_encrypt_attr
- radius_send_request
- radius_server_secret
- radius_strerror
Коментарии
404 Not Found