Case-insensitive regexps in rlm_files

Brian Candler B.Candler at pobox.com
Fri Nov 19 17:46:39 CET 2010


Alan DeKok wrote:
> > - technically this is an incompatible change for existing configs with
> >   User-Name == /foo/, which would have to change to User-Name == "/foo/"
> 
>   ?  /foo/ isn't supported right now.  So that won't cause any change.

Maybe not supported, but it does work: the unquoted string /foo/ is treated
as if it were "/foo/"

DEFAULT User-Name =~ /foo/,     Cleartext-Password := "testing"
        Service-Type = Framed-User,
        Framed-Protocol = PPP,
	... snip

$ bin/radtest /foo/ testing localhost 1 testing123
Sending Access-Request of id 159 to 127.0.0.1 port 1812
	User-Name = "/foo/"
	User-Password = "testing"
	NAS-IP-Address = 127.0.0.1
	NAS-Port = 1
rad_recv: Access-Accept packet from host 127.0.0.1 port 1812, id=159, length=71
	Service-Type = Framed-User
	Framed-Protocol = PPP
	... snip



More information about the Freeradius-Users mailing list