Re: regular expression grouping issue on attrs filter

2012-04-20 Thread Ivo Vastert
Hi, We have the regexp's working properly now. The trick was removing the / / (in the front and at the end of the line). The only issue we have left is that we want to set multiple values for the same key in the attrs file, normally we set: Cisco-AVPair = value1 Cisco-AVPair +=

Re: regular expression grouping issue on attrs filter

2012-04-20 Thread Ivo Vastert
And to make it even more complicated, On some Cisco-AVPair we want to do reg exp matching. And some other's we want to add by default, but they all share the same key name.. Is this possible within freeradius? Ivo On Apr 20, 2012, at 6:14 PM, Ivo Vastert wrote: Hi, We have the regexp's

Re: regular expression grouping issue on attrs filter

2012-04-20 Thread Alan Buxey
Hi, Personally I would be looking at calling a PERL script for this kind of checking and calling it in pre-proxy and post-proxy stages alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: regular expression grouping issue on attrs filter

2012-04-19 Thread Phil Mayers
On 04/18/2012 07:04 PM, Ivo Vastert wrote: Hi Phil, Thank you for your answer. I just try'd your rule but this one is refused aswell (Freeradius won't start with it, giving a parse error). Framed-IP-Address =~ /^172\.(1[6-9]|2[0-9]|3[01])\./ I still have the feeling ( ) is not accepted, when

regular expression grouping issue on attrs filter

2012-04-18 Thread Ivo Vastert
Hi, I'm currently having a issue implementing a regular expression within the attrs configuration file. When i try to group entry's within a regular expression the configuration is rejected: For example: This entry works: Framed-IP-Address =~

Re: regular expression grouping issue on attrs filter

2012-04-18 Thread Phil Mayers
On 18/04/12 15:30, Ivo Vastert wrote: Hi, I'm currently having a issue implementing a regular expression within the attrs configuration file. When i try to group entry's within a regular expression the configuration is rejected: What does that mean? Rejected how? For example: This entry

Re: regular expression grouping issue on attrs filter

2012-04-18 Thread Ivo Vastert
Hi Phil, Thank you for your answer. I just try'd your rule but this one is refused aswell (Freeradius won't start with it, giving a parse error). Framed-IP-Address =~ /^172\.(1[6-9]|2[0-9]|3[01])\./ I still have the feeling ( ) is not accepted, when we don't use themthe grouping characters,