28 May
2007
28 May
'07
9:53 a.m.
Previously Alan Dekok wrote:
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}" } }
Does this mean that you will have to duplicate that or use a much more complex expression to allow both user@realm and realm/user syntaxes for a realm? That would be slightly inconvenient. Wichert. -- Wichert Akkerman <wichert@wiggy.net> It is simple to make things. http://www.wiggy.net/ It is hard to make things simple.