User-Name containing a $
A.L.M.Buxey at lboro.ac.uk
A.L.M.Buxey at lboro.ac.uk
Tue Jul 23 10:44:17 CEST 2013
Hi,
> Your previous answer gives an example using the unlang regex syntax, including the case-insensitive operator at the end. But I was hoping to find an elegant way to do case-insensitive matching in proxy.conf, where the comments admit that the syntax breaks the rules of unlang regex matching. Putting an 'I' at the end hasn't worked for me.
>
> I'd love to do this:
> realm "~FOO\\.EDU$"i {
> stuff here
> }
>
> Is the case-insensitive behavior supported in proxy.conf?
dont do that.
use unlang to define a proper realm contruct and then use that. either using native or with case eg either
something like this,
if("%{realm}" =~ /foo.edu/i {
update request {
Realm := "foo.edu"
}
}
then
switch "%{Realm}" {
case "NULL" {
}
case "foo.edu" {
update control {
Proxy-To-Realm := "foo.edu"
}
}
# etc etc
}
or this:
if("%{realm}" =~ /foo.edu/i {
update request {
Realm := "foo.edu"
}
update control {
Proxy-To-Realm := "foo.edu"
}
}
alan
More information about the Freeradius-Users
mailing list