users file rejex

Alan DeKok aland at deployingradius.com
Tue Apr 17 15:01:30 CEST 2012


DaveA wrote:
> Where is the best place to do this? I have tried to put this in the users
> file, but I may not have the correct regex:
> 
> DEFAULT User-Name =~ /[0-9a-zA-Z\/\\]+/, Auth-Type := Reject

  The users file requires quotes around regexes:

DEFAULT User-Name =~ "[0-9a-zA-Z\/\\]+", Auth-Type := Reject

  Alan DeKok.


More information about the Freeradius-Users mailing list