Stripping the calling station id

Alan DeKok aland at deployingradius.com
Fri Jun 22 15:54:28 CEST 2018


> On Jun 22, 2018, at 9:53 AM, Kefi Ammar . <kefiammar at gmail.com> wrote:
> 
> I am sure that I've put all of it there and now when I replaced it with
> %{1} I have a different result in the debug output :
> 
> # Executing section authorize from file
> /etc/freeradius/sites-enabled/default
> +- entering group authorize {...}
>    expand: %{Calling-Station-ID} -> lag-50:1201.0#BNG Kasbah###pppoe
> 94:a7:b7:3e:93:5b#
> ++[request] returns notfound
> ++? if (Calling-Station-Id =~ /pppoe ([^#]+#/)
> ERROR: Failed compiling regular expression: Unmatched ( or \(

  Use:

if (Calling-Station-Id =~ /pppoe ([^#]+#)/)

  Alan DeKok.



More information about the Freeradius-Users mailing list