[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freeradius-users
Subject:    Re: Attribute filtering with regex problem
From:       John Horne <john.horne () plymouth ! ac ! uk>
Date:       2017-10-24 13:24:27
Message-ID: 1508851467.24914.20.camel () plymouth ! ac ! uk
[Download RAW message or body]

On Tue, 2017-10-24 at 08:54 -0400, Alan DeKok wrote:
> On Oct 24, 2017, at 8:51 AM, John Horne <john.horne@plymouth.ac.uk> wrote:
> > (Using Freeradius 3.0.13)
> > I have been modifying our 'mods-config/attr_filter/post-proxy' filter file
> > to allow through a couple of 'Service-Type' attribute values after
> > proxying. However, to allow more than one value the only way I can get it
> > to work is to specify the value as 'ANY'. (Running 'radiusd -X' shows the
> > access-accept packet being sent out with the attribute.) In particular, I
> > have been trying to use a regular expression but the attribute always gets
> > filtered out.
> 
> The regular expression matches are likely now what you want. I'll have to
> double-check that they even work correctly for integer attributes with names.
> 
> > So my question is, what is the correct syntax for using '=~' with a regex
> > in the post-proxy filter file?
> 
> Don't.  Just use unlang:
> 
Okay, that's not a problem. Thanks for the quick reply.



John.

--
John Horne | Senior Operations Analyst | Technology and Information Services
University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK
________________________________
[http://www.plymouth.ac.uk/images/email_footer.gif]<http://www.plymouth.ac.uk/worldclass>


This email and any files with it are confidential and intended solely for the use of \
the recipient to whom it is addressed. If you are not the intended recipient then \
copying, distribution or other use of the information contained is strictly \
prohibited and you should not rely on it. If you have received this email in error \
please let the sender know immediately and delete it from your system(s). Internet \
emails are not necessarily secure. While we take every care, Plymouth University \
accepts no responsibility for viruses and it is your responsibility to scan emails \
and their attachments. Plymouth University does not accept responsibility for any \
changes made after it was sent. Nothing in this email or its attachments constitutes \
an order for goods or services unless accompanied by an official order form.

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic