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: with correct_escapes=false /etc/raddb/policy.d/strip-user-domain[10]: Invalid regular expression: /etc/raddb/policy.d/strip-user-domain[10]: ^([^\]*)\(.*)$ /etc/raddb/policy.d/strip-user-domain[10]: ^ Pattern compilation failed: missing terminating ] for character class — Aaron
On Mar 5, 2015, at 10:52 AM, Stefan Paetow <Stefan.Paetow@jisc.ac.uk> wrote:
On 5 Mar 2015, at 16:49, Aaron Hurt via Freeradius-Devel <freeradius-devel@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@deployingradius.com> Subject: Re: filter_username and regexps broken Date: 5 March 2015 16:37:54 GMT To: FreeRadius developers mailing list <freeradius-devel@lists.freeradius.org> Reply-To: FreeRadius developers mailing list <freeradius-devel@lists.freeradius.org>
On Mar 5, 2015, at 11:28 AM, Sam Hartman <hartmans@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@jabber.dev.ja.net skype: stefan.paetow.janet Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG
jisc.ac.uk
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