regular expression error in 3.0.x not present in 3.0.6
aland at deployingradius.com
Thu Mar 5 18:17:05 CET 2015
On Mar 5, 2015, at 11:49 AM, Aaron Hurt via Freeradius-Devel <freeradius-devel at lists.freeradius.org> wrote:
> I have a policy.d file containing a regular expression that works in 3.0.6 that I’ve tried with two different flavors.
> Both flavors load and work in 3.0.6 but error in the latest 3.0.x branch.
The v3.0.x branch should be compatible with the 3.0.6 config.
> simple_nt_regexp = "^([^\\\\]*)(\\\\(.*))$"
> simple_nt_regexp = "^([^\\\\]*)\\\\(.*)$”
Ugh. The “endless backslash” problem. I’d prefer to see the use of “correct_escapes”.
> In 3.0.x from today:
> /opt/local/etc/raddb/policy.d/strip-user-domain: Invalid regular expression:
> /opt/local/etc/raddb/policy.d/strip-user-domain: ^([^\\]*)\\(.*)$
> /opt/local/etc/raddb/policy.d/strip-user-domain: ^ Pattern study failed: unknown or incorrect option bit(s) set
>> Seen this error before. It turned out I used headers from 8.31, but
>> linked against the distro libpcre.
>> I'm pretty sure you have either a typo in your --with-libpcre-* or you\
>> have multiple libpcre.so's of different versions in your ld path.
> Is there something obvious that I am missing?
Don’t install multiple versions of the same library. It’s just a bad idea.
More information about the Freeradius-Devel