rlm_dhcp

Synopsis

This module is useful only for dynamic expansions. The DHCP module is used to decode RADIUS attributes that contain DHCP options.

Some vendors put DHCP options into RADIUS attributes. While the default RADIUS decoder in the server treats these options as binary data, this module allows them to be treated as DHCP options, instead.

The module is known to work with the following VSAs:

Juniper

ERX-Dhcp-Options

Alcatel lucent SR

Alc-ToServer-Dhcp-Options

Alc-ToClient-Dhcp-Options

Processing Sections

None.

Expansions

This module registers only one expansion.

dhcp_options
Syntax

%{dhcp_options:&Attribute-Name}

Contents

The contents of the expansion should be a reference to an attribute. The attribute must contain data that is one or more valid DHCP option(s). These DHCP options are usually sent in a RADIUS attribute by vendors that implement DHCP to RADIUS gateways.

The output of the expansion is a number that indicates how many options were decoded. In addition, the decoded DHCP options are added to the request as attributes.

Directives

None.