Hi,

I added:
DEFAULT User-Name =~ "^([...@]+)@isp.com", NAS-IP-Address == "127.0.0.1"
          User-Name := "%{1}"

and this is my debug:
rad_recv: Access-Request packet from host 127.0.0.1 port 36732, id=6,
length=59
        User-Name = "4371104"
        User-Password = "4371104"
        NAS-IP-Address = 127.0.0.1
        NAS-Port = 0
+- entering group authorize {...}
[preprocess]    expand: %{User-Name} -> 4371104
[preprocess]   hints: Matched DEFAULT at 52
[preprocess]    expand: %{1} ->
++[preprocess] returns ok
++[chap] returns noop
++[mschap] returns noop
[suffix] No '@' in User-Name = "", looking up realm NULL
[suffix] No such realm "NULL"
++[suffix] returns noop
[eap] No EAP-Message, not doing EAP
++[eap] returns noop
[sql]   expand: %{User-Name} ->
[sql] sql_set_user escaped user --> ''

and failed authentication. Kindly assist.

Thanks.

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

Reply via email to