regular expression error in 3.0.x not present in 3.0.6
ahurt at ena.com
Thu Mar 5 18:17:32 CET 2015
The errors in the previous post were with ‘correct_escapes=true’ … when setting to false the compilation fails with another error because it thinks the ‘]' is being escaped:
/etc/raddb/policy.d/strip-user-domain: Invalid regular expression:
/etc/raddb/policy.d/strip-user-domain: ^ Pattern compilation failed: missing terminating ] for character class
> On Mar 5, 2015, at 10:52 AM, Stefan Paetow <Stefan.Paetow at jisc.ac.uk> wrote:
> On 5 Mar 2015, at 16:49, 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.
> See this:
>> From: Alan DeKok <aland at deployingradius.com>
>> Subject: Re: filter_username and regexps broken
>> Date: 5 March 2015 16:37:54 GMT
>> To: FreeRadius developers mailing list <freeradius-devel at lists.freeradius.org>
>> Reply-To: FreeRadius developers mailing list <freeradius-devel at lists.freeradius.org>
>> On Mar 5, 2015, at 11:28 AM, Sam Hartman <hartmans at mit.edu> wrote:
>>> I'm getting a request denied because the username matches \.\., but I
>>> don't see why that should be true
>> Edit radiusd.conf and set “correct_escapes = true”
>> Alan DeKok.
> Stefan Paetow
> Moonshot Industry & Research Liaison Coordinator
> t: +44 (0)1235 822 125
> gpg: 0x3FCE5142
> xmpp: stefanp at jabber.dev.ja.net
> skype: stefan.paetow.janet
> Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG
> Jisc is a registered charity (number 1149740) and a company limited by guarantee which is registered in England under Company No. 5747339, VAT No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower Hill, Bristol, BS2 0JA. T 0203 697 5800.
> Jisc Collections and Janet Ltd. is a wholly owned Jisc subsidiary and a company limited by guarantee which is registered in England under Company No. number 2881024, VAT No. GB 197 0632 86. The registered office is: Lumen House, Library Avenue, Harwell, Didcot, Oxfordshire, OX11 0SG. T 01235 822200.
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 496 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the Freeradius-Devel