matching operator name case sensitive

Alan DeKok aland at deployingradius.com
Thu Jun 7 18:04:55 CEST 2018


> On Jun 7, 2018, at 10:26 AM, Peter Steadman <psteadman at warwickshire.ac.uk> wrote:
> 
> Hi
> I am totally new to freeradius and with the help of the excellent wiki (
> https://wiki.freeradius.org/guide/eduroam) have a working test server

  That's good to hear,

> with
> only one apparent simple niggling issue, operator name matching is case
> sensitive when using the expression below to match multiple domains. I
> understand that cannot use "/i" in the this instance

  Why not?  Just use a regular expression match.  See "man unlang"

> but am really
> struggling to find another way making this case insensitive.
> I should really appreciate it if someone could give me a hint, point me in
> another direction or even better give an example.
> many thanks
> Pete

if (&Stripped-User-Domain !~ /^${operator_name1}$/i) ...

  Alan DeKok.




More information about the Freeradius-Users mailing list