Freeradius 3.0.7 regex check in module files doesn't work

Phil Mayers p.mayers at imperial.ac.uk
Fri Mar 6 12:03:04 CET 2015


Your "users" syntax is invalid.

This:

mac	NAS-Identifier =~ "...", Tunnel-Private-Group-ID := "100"

...should be:

mac	NAS-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.


More information about the Freeradius-Users mailing list