Freeradius 3.0.7 regex check in module files doesn't work
Stabla, Daniel
dstabla at materna.de
Mon Mar 9 09:25:07 CET 2015
I changed it to the "new" layout, but the problem still exists.
Only if I change NAS-Identifier =~ "..." to NAS-Identifier == "..." I get
a result.
Kind regards.
D. Stabla
-----Ursprüngliche Nachricht-----
Von: Freeradius-Users
[mailto:freeradius-users-bounces+dstabla=materna.de at lists.freeradius.org] Im
Auftrag von Phil Mayers
Gesendet: Freitag, 6. März 2015 12:03
An: freeradius-users at lists.freeradius.org
Betreff: Re: Freeradius 3.0.7 regex check in module files doesn't work
Your "users" syntax is invalid.
This:
macNAS-Identifier =~ "...", Tunnel-Private-Group-ID := "100"
...should be:
macNAS-Identifier =~ "..."
Tunnel-Private-Group-ID := "100"
Comparisons, and "set" for control items, go on the first line of a
"users" file entry. Reply items go on 2nd and subsequent lines.
It might be that this worked by accident in 3.0.4.
It's also best IMO from a readability PoV to leave a blank line between
users file entries.
I would encourage you to convert this config to "unlang" which is less
"magical" than users-file syntax.
-
List info/subscribe/unsubscribe? See
http://www.freeradius.org/list/users.html
More information about the Freeradius-Users
mailing list