Stripped-User-Domain case insensitive
Hi, I'am testing Freeradius with this guide <https://wiki.freeradius.org/guide/eduroam>, but when I put a capital letter in my domain name (example: anonymous@mydomain.COm), the requests are proxied. I think I need to add something here (into site-enabled/default) : ... if (Stripped-User-Domain != "${operator_name}") { ... I tested : ... if ("%{tolower:Stripped-User-Domain}" != "${operator_name}") { ... but it doesn't work (all requests are proxied). what wrong? thanks.
The check is regex. So if you want it to be case insensitive ensure you have a /i at the end of the comparison alan On 12 Mar 2018 4:49 pm, "wouldsmina" <wouldsmina@gmail.com> wrote:
Hi,
I'am testing Freeradius with this guide <https://wiki.freeradius.org/guide/eduroam>, but when I put a capital letter in my domain name (example: anonymous@mydomain.COm), the requests are proxied.
I think I need to add something here (into site-enabled/default) :
... if (Stripped-User-Domain != "${operator_name}") { ...
I tested : ...
if ("%{tolower:Stripped-User-Domain}" != "${operator_name}") { ...
but it doesn't work (all requests are proxied).
what wrong?
thanks. - List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
ah! I will test that. Thank you
2018-03-12 18:45 GMT+01:00 Alan Buxey <alan.buxey@gmail.com>:
> The check is regex. So if you want it to be case insensitive ensure you
> have a /i at the end of the comparison
>
> alan
>
> On 12 Mar 2018 4:49 pm, "wouldsmina" <wouldsmina@gmail.com> wrote:
>
> > Hi,
> >
> > I'am testing Freeradius with this guide
> > <https://wiki.freeradius.org/guide/eduroam>, but when I put a capital
> > letter in my domain name (example: anonymous@mydomain.COm), the requests
> > are proxied.
> >
> > I think I need to add something here (into site-enabled/default) :
> >
> > ...
> > if (Stripped-User-Domain != "${operator_name}") {
> > ...
> >
> >
> > I tested :
> > ...
> >
> > if ("%{tolower:Stripped-User-Domain}" != "${operator_name}") {
> > ...
> >
> >
> > but it doesn't work (all requests are proxied).
> >
> > what wrong?
> >
> > thanks.
> > -
> > List info/subscribe/unsubscribe? See http://www.freeradius.org/
> > list/users.html
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/
> list/users.html
participants (2)
-
Alan Buxey -
wouldsmina