Per-realm post-proxy

Phil Mayers p.mayers at imperial.ac.uk
Mon Aug 13 18:39:44 CEST 2012


On 13/08/12 17:16, Shaun Lowry wrote:
> Is it possible to have a per-realm post-proxy section?  We need to add a
> couple of attributes to our Access-Accepts which vary in content
> depending on which realm we've proxied.  Otherwise, is there an easy way
> to distinguish realm in the global post-proxy section?

Just refer to it.

post-proxy {
   if (Realm == abc) {
     update reply {
       ...
     }
   }
   elsif (Realm ...) {
   }
}

...or:

post-proxy {
   switch (Realm) {
     case "abc" {
     }
     case "def" {
     }
     case {
     }
   }
}


More information about the Freeradius-Users mailing list