12 Sep
2012
12 Sep
'12
10:49 a.m.
All, We have a bit of unlang to fix up inconsistent usage of NAS-Port and NAS-Port-Id on our switches. The code looks like this: if ((NAS-Port-Id =~ /(.+):(.+)/) && (!NAS-Port)) { update request { NAS-Port = "%{expr:1000*%{1} + %{2}}" } } Since the upgrade to 2.2.0 this has been evaluating to "" i.e. the empty string. Unfortunately I only just noticed this. Adding a space after the "expr:" makes it spring to life again. I'm guessing this might fix it: https://github.com/alandekok/freeradius-server/commit/a01dd0fd6d0aaf65d52057... ...but I can't really see why. I'm a bit pushed for time at the moment so can't compile up a new copy, and will just go with the workaround.
5047
Age (days ago)
5047
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alan DeKok -
Phil Mayers