dhcp xlat for encoding DHCP options in RADIUS attributes
Arran Cudbard-Bell
a.cudbardb at freeradius.org
Wed Mar 7 14:47:27 CET 2018
>
>
> What I’ve found, is that I get a not a DHCP attribute error if I try:
> ERX-Dhcp-Options = "0x%{dhcp:control:DHCP-Vendor-URL}”
>
> But not if I try:
> ERX-Dhcp-Options = "0x%{dhcp:DHCP-Vendor-URL}”
> OR
> ERX-Dhcp-Options = "0x%{dhcp:control:DHCP-Vendor}”
>
>
> Obviously, I set them in the relevant correct places before these lines. I don’t understand why this is the case - it only seems like it doesn’t like control being there if it’s the TLV attributes, but the top level TLV works fine.. very odd.
Could it be the attribute doesn't actually exist in the control list? I just checked the code and it'll parse lists fine.
Use debug_control before calling the xlat to double check.
Thanks,
-Arran
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 874 bytes
Desc: Message signed with OpenPGP
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20180307/891ae83f/attachment.sig>
More information about the Freeradius-Users
mailing list