Redirect to Realm with Username regex

Nicolas Baradakis nbk at sitadelle.com
Tue Nov 29 11:34:31 CET 2005


Armin ranjbar wrote:

> Is this possible to redirect users to another realm ( just like @realm )
> with username perfix ?
> for example , redirect any username that start with A1 to a realm
> and A2's to another ?

You could try to define the realms in "proxy.conf" and add something
like this in the "users" file:

DEFAULT User-Name =~ "^A1", Proxy-To-Realm := "foo.net"

DEFAULT User-Name =~ "^A2", Proxy-To-Realm := "bar.com"

-- 
Nicolas Baradakis




More information about the Freeradius-Users mailing list