Stripping the calling station id
Kefi Ammar .
kefiammar at gmail.com
Fri Jun 22 15:53:07 CEST 2018
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 \(
2018-06-22 14:44 GMT+01:00 Alan DeKok <aland at deployingradius.com>:
>
> > On Jun 22, 2018, at 9:41 AM, Kefi Ammar . <kefiammar at gmail.com> wrote:
> >
> > I am asking this because I am new to freeradius
>
> That's OK...
>
> > and Ive already put it in
> > the authorize section of "sites-enabled/default" -actually its the first
> > thing in that section-
>
> No, it isn't. It looks like you put in the "update" block. But not the
> "if" block.
>
> Put in ALL of it.
>
> > and in the debug output it indicates notfound and
> > now since i've changed it the debug stops with an error :
> >
> > WARNING: No such configuration item 1
> > /etc/freeradius/sites-enabled/default[77]: Reference "${1}" not found
>
> That's a typo on my end, sorry. Replace it with %{1}
>
> Alan DeKok.
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html
>
More information about the Freeradius-Users
mailing list