Well this is amazing, going to the right direction, now the calling-station-id is = 94:a7:b7:3e:93:5b# so there is the extra # in it if I can put that away it would work perfectly !! 2018-06-22 14:54 GMT+01:00 Alan DeKok <aland@deployingradius.com>:
On Jun 22, 2018, at 9:53 AM, Kefi Ammar . <kefiammar@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.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html