Realms Extraction

Alan DeKok aland at deployingradius.com
Mon Jan 26 10:34:41 CET 2009


tech.subscriptions at shepherdhill.biz wrote:
> 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} ->

  Because the regex didn't match.

> and failed authentication. Kindly assist.

  Write a *correct* regular expression that matches the incoming User-Name.

  Alan DeKok.



More information about the Freeradius-Users mailing list