Arran Cudbard-Bell wrote:
if ("%{User-Name}" =~ /^bob/) { update config { Proxy-To-Realm = "bob_realm" } } ?
Almost: if ("%{User-Name}" =~ /^(.*)@(example.com)$/) { update config { Proxy-To-Realm := "%{2}" } update request { Stripped-User-Name := "%{1}" Realm := "%{2}" } } That's much of the functionality of the "realms" module. Not all, but most of it. As I said, I have to do performance checks to see how much different this is over using the "realms" module, but I don't expect it to be that bad.
Just the return codes now :P
That will take a little more work, but perhaps add even more functionality as a side-effect. Alan DeKok. -- http://deployingradius.com - The web site of the book http://deployingradius.com/blog/ - The blog