Phil Mayers wrote:
> The value of VQP-Error-Code may make a difference; the code in OpenVMPS
> seems to work like this:
Do you have some sample "unlang" config we can add to the server examples?
>> What's the easiest way to get the MAC address out of these?
>
> I used this in the end:
>
> # the mac address can be in several places...
> if ("%{VMPS-Ethernet-Frame}" =~
> /0x............(..)(..)(..)(..)(..)(..).*/) {
> update request {
> MyMac = "%{1}:%{2}:%{3}:%{4}:%{5}:%{6}"
Wow... I guess that works, but wow. It's been a while since I used
regular expressions to parse raw packets.
Also, in 2.0.1, you don't need "%{..}" for VMPS-Ethernet-Frame. You
can just put the bare name before the =~ operator.
Alan DeKok.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html