Hi, After FreeRADIUS 2.10, we had to replace the DEFAULT {} stanza with the below in proxy.conf to ensure that the Realm attribute was correctly populated: realm "~.+$" { authhost = "host to deal with other realms" : : } Is that still necessary for FR 3.0? I'm just updating some of our internal documentation here and wanted to make sure that I don't add extraneous stuff when it's not necessary. :-) Stefan Paetow Software Engineer +44 1235 778812 Diamond Light Source Ltd. Diamond House, Harwell Science and Innovation Campus Didcot, Oxfordshire, OX11 0DE -- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
stefan.paetow@diamond.ac.uk wrote:
After FreeRADIUS 2.10, we had to replace the DEFAULT {} stanza with the below in proxy.conf to ensure that the Realm attribute was correctly populated:
Huh? That's wrong. The DEFAULT realm works just fine. And it's not "DEFAULT {}". See raddb/proxy.conf for details. Alan DeKok.
Alan, https://confluence.terena.org/display/H2eduroam/freeradius-sp implies that after v2.1.9, "%{Realm}" would contain "DEFAULT", not whatever the realm extracted from User-Name was, when used in logging... Hence my question. Of course, if this is no longer an issue, then I'll happily amend our instructions to leave the DEFAULT realm as-is. Also, when I wrote "DEFAULT {}", it was a shortening (for the sake of brevity) of: realm DEFAULT { authhost = blah etc etc etc } I was just trying to save some lines and extraneous text here. Stefan
-----Original Message----- From: freeradius-users- bounces+stefan.paetow=diamond.ac.uk@lists.freeradius.org [mailto:freeradius-users- bounces+stefan.paetow=diamond.ac.uk@lists.freeradius.org] On Behalf Of Alan DeKok Sent: 25 July 2013 01:47 To: FreeRadius users mailing list Subject: Re: Realm attribute population
stefan.paetow@diamond.ac.uk wrote:
After FreeRADIUS 2.10, we had to replace the DEFAULT {} stanza with the below in proxy.conf to ensure that the Realm attribute was correctly populated:
Huh? That's wrong. The DEFAULT realm works just fine.
And it's not "DEFAULT {}". See raddb/proxy.conf for details.
Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-- This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail. Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message. Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
On 25/07/13 10:43, stefan.paetow@diamond.ac.uk wrote:
Alan,
https://confluence.terena.org/display/H2eduroam/freeradius-sp implies that after v2.1.9, "%{Realm}" would contain "DEFAULT", not whatever the realm extracted from User-Name was, when used in logging... Hence my question.
Of course, if this is no longer an issue, then I'll happily amend our instructions to leave the DEFAULT realm as-is. Also, when I wrote "DEFAULT {}", it was a shortening (for the sake of brevity) of:
realm DEFAULT { authhost = blah etc etc etc }
I was just trying to save some lines and extraneous text here.
IMHO you're much better off avoiding the "realm" module, and handling the processing yourself in unlang, particularly if you're using doing an eduroam or other federation. This lets "Realm" and "Proxy-To-Realm" be different values, and for extended checking to be done on the realm value. We do something like this: authorize { if (User-Name =~ /^(.*)@(.+)$/) { update request { Stripped-User-Name := "%{1}" Realm := "%{toupper:%{2}}" } if ((Realm == "MY.REALM1") || (Realm == "MY.REALM2")) { update control { Proxy-To-Realm := "MYREALM" } } elsif (Realm !~ /^([-A-Z0-9]+\.)+[-A-Z0-9]+/) { # invalid realm format reject } else { update control { Proxy-To-Realm := "EDUROAM" } } } else { reject } }
participants (3)
-
Alan DeKok -
Phil Mayers -
stefan.paetow@diamond.ac.uk