Hi,

I have updated my Freeradius from 2.0.5 to 2.1.3 and am having a problem
with the regular expressions I am using in the users file.

If I provide a simple example users file I am testing against:

DEFAULT NAS-IP-Address =~ "192.168.1.1|10.0.1.1"
                Service-Type = Framed-User,
                Framed-Protocol = PPP,
                Fall-Through = Yes

tim             Cleartext-Password := "test123" 


this gives the following debug output with a test client...


[suffix] No '@' in User-Name = "tim", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[files]         expand: %{NAS-IP-Address} -> 192.168.1.1
[files] Invalid regular expression : empty (sub)expression <== problem
here
[files] users: Matched entry tim at line 10
++[files] returns ok
++[expiration] returns noop
++[logintime] returns noop
[pap] Found existing Auth-Type, not changing it.
++[pap] returns noop
Found Auth-Type = CHAP
+- entering group CHAP {...}
[chap] login attempt by "tim" with CHAP password
[chap] Using clear text password "test123" for user tim authentication.
[chap] chap user tim authenticated succesfully
++[chap] returns ok
Login OK: [tim] (from client sotalan port 0)
+- entering group post-auth {...}
++[exec] returns noop
Sending Access-Accept of id 29 to 192.123.126.98 port 47875
Finished request 0.

Even a simpler expression like NAS-IP-Address =~ "192.168" fails with
the same message "Invalid regular expression : empty (sub)expression". 

The same style expressions have been in active use on 2.0.3 and 2.0.5,
can anyone offer any advice?

Thanks in advance

Tim 

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to