Attribute filter file - realm regex allowed?

John Horne john.horne at plymouth.ac.uk
Fri Oct 6 14:27:43 UTC 2023


Hello,

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.

If a regex is not allowed, is it possible to do something like:

plymouth.ac.uk
abc.plymouth.ac.uk
    User-Name =* ANY
    ...

so that both of the realms filter the same attributes?

Or do I need to create a separate entry for each realm specifying the relevant
attributes in each of them?


Thanks,

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