Basically, this works in "hints":

DEFAULT NAS-Port-Id =~ "(.+):(.+)", NAS-Port !* ANY
        NAS-Port = `%{expr:1000*%{1} + %{2}}`,
        Fall-Through = Yes

...but this does not:

DEFAULT NAS-Port !* ANY, NAS-Port-Id =~ "(.+):(.+)"
        NAS-Port = `%{expr:1000*%{1} + %{2}}`,
        Fall-Through = Yes

...as %{1} and %{2} are undefined in the latter case. I would have expected this to be the opposite case if anything. Is this expected?

In 2.0 I would use an "if" unlang, but this is on our (soon to be upgraded) production servers.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to