radius_put_vendor_attr
PHP function
Edit on GitHub ✎
(PECL radius >= 1.1.0)
Attaches a vendor specific binary attribute
Description
radius_put_vendor_attr(resource $radius_handle, int $vendor, int $type, string $value, int $options = 0, [int $tag]): bool
Attaches a vendor specific binary attribute to the current RADIUS request.
Required
Parameters
valueThe attribute value, which will be treated as a raw binary string.
Return Values
Success
Changelog
| Version | Description |
|---|---|
| PECL radius 1.3.0 | The options and tag parameters were added. |
Examples
radius_put_vendor_attr() example
php
<?php
if (!radius_put_vendor_attr($res, RADIUS_VENDOR_MICROSOFT, RAD_MICROSOFT_MS_CHAP_CHALLENGE, $challenge)) {
echo 'RadiusError:' . radius_strerror($res). "\n<br />";
exit;
}
?>