dhcp_options xlat with ERX-Dhcp-Options

Arran Cudbard-Bell a.cudbardb at freeradius.org
Sun Apr 14 22:45:50 CEST 2013


> 
> 
> I suspect I may need to fully re-write the PROTO_DHCP module to get it to complie without too much drama onto FreeRadius 2.1.12 as that's the version we are running due to it being supported by RHEL 6.3.  Or hack it with a rlm_perl script.
> 

V2 head also has the xlat function, see xlat.c. Bundle it and its dependencies in a new module if you're intent on using 2.1.12.

> Any suggestions on the best way to manipulate the octet string?

Regex with capture groups. Binary attributes get converted to hex strings for the purpose of regex. When you assign a hex string (prefixed with 0x) to an attribute of type octets FreeRADIUS will do the conversion for you.

Arran Cudbard-Bell <a.cudbardb at freeradius.org>
FreeRADIUS Development Team



More information about the Freeradius-Devel mailing list