Attribute filter file - realm regex allowed?

John Horne john.horne at plymouth.ac.uk
Tue Oct 10 09:50:15 UTC 2023


On Mon, 2023-10-09 at 15:38 -0400, Alan DeKok wrote:
> On Oct 6, 2023, at 10:27 AM, John Horne <john.horne at plymouth.ac.uk> wrote:
> > Using FreeRADIUS 3.0.20, is it possible to specify the realm as a regex in
> > the attribute filter files (/etc/raddb/mods-config/attr_filter/pre-proxy,
> > and the post-proxy file)?
> >
> > I have tried using:
> > ^.*\.plymouth\.ac\.uk$
> > ~^.*\.plymouth\.ac\.uk$
> > "^.*\.plymouth\.ac\.uk$"
> >
> > Although none of these cause an error, using radmin with a debug condition
> > shows that requests do not match the above but match the DEFAULT entry.
>
>   Those files don't support regular expressions.
> > >
...

>
>
>   Why not just write this all in unlang?  See "filtering operators" in:
> https://freeradius.org/documentation/freeradius-server/3.2.4/unlang/update.html
>
Thanks for that. I'll give it a go.


John.

--
John Horne | Senior Operations Analyst | Technology and Information Services
University of Plymouth | Drake Circus | Plymouth | Devon | PL4 8AA | UK
________________________________
[https://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, University of Plymouth accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. University of Plymouth 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.


More information about the Freeradius-Users mailing list