Proxy based on Multiple Realms

Alan Buxey A.L.M.Buxey at lboro.ac.uk
Tue Oct 20 13:36:17 CEST 2009


Hi,

>     if ( User-Name =~ /^host\//i ) {
>         if ( User-Name =~ /\\.first\\.domain$/i ) {
>             update control {
>                 Proxy-To-Realm := "first.domain"
>             }
>         }
>         if ( User-Name =~ /\\.second\\.domain$/i ) {
>             update control {
>                 Proxy-To-Realm := "second.domain"
>             }
>         }
>         if ( User-Name =~ /\\.first\\.domain$/i ) {
>             update control {
>                 Proxy-To-Realm := "third.domain"
>             }
>         }
>     }

will that 4th if ever work (first.domain being sent to third.domain)
as the match would have already happened on the 2nd if......

alan



More information about the Freeradius-Users mailing list