Unable to use regexp in virtual server

Alan DeKok aland at deployingradius.com
Thu Mar 5 15:50:21 CET 2015


On Mar 5, 2015, at 7:52 AM, RESTOUX, Loïc <loic.restoux at capgemini.com> wrote:
> The startup fails with the following error:
> 
> <file>[38]: Invalid regular expression:
> <file>[38]: ^circuit-id-tag=(.+)
> <file>[38]:                     ^

  I don’t see that here.

> Apparently, the failure comes from the computation of the size of the pattern. regex_compile() tries to find a NULL value in the 23 characters of the regexp, when obviously the length of the pattern is only 20.

  Knowing more would help.   Unfortunately getting more information means going into the deep recesses of the code, to see exactly what it’s doing, and why.

  Which OS is this for?  What regular expression library are you using?

> Am I missing something in the syntax of the virtual server configuration ?

  Nope.  It should work.

  Alan DeKok.




More information about the Freeradius-Users mailing list