Proxy based on Multiple Realms

Bob Brandt bob at brandt.ie
Tue Oct 20 12:13:28 CEST 2009


Okay, just to update everyone and for others that might search this
mail-listing:

I have finally gotten it, using the code below in the authorize section I
can send host authentication to multiple proxies based on domain name

    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"
            }
        }
    }

For whatever reason I had to use 2 backslashes in front of the period in the
domain names?? But anyway, this part of the project is working.

Thanks for all the help!
Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20091020/f54579bb/attachment.html>


More information about the Freeradius-Users mailing list