php8.5
Home/ Manual/ radius / functions/ radius_put_vendor_attr

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

value

The attribute value, which will be treated as a raw binary string.

Return Values

Success

Changelog

VersionDescription
PECL radius 1.3.0The 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;
}
?>

See Also

Source: reference/radius/functions/radius-put-vendor-attr.xml · from the official PHP manual (php/doc-en)