On Sun, Aug 10, 2003 at 01:58:33PM -0000, Sinisa Burina wrote: > Is it possible, or could it be possible in the future to have users authenticated > against different SQL tables/databases, optionally wven with different queries, > depending on values of auth request attributes? Some way of dynamic definition of > currently statically defined SQL queries and table names would really enhance the > overall functionality and flexibility. For example, in my company's wireless > environment, I'd like to have two kinds of authentication - MAC and VPN, and instead > of having two separate radius servers it would be much nicer to have just two > different tables (one with MAC addresses and the other with VPN usernames/passwords) > and to chose appropriate table based on, say, NAS-IP-Address attribute.
Define multiple sql instances with different queries. Use huntgroups to set an Auth-Type. Use the Auth-Type to select the correct SQL instance. You should find some configuration examples in the list archives, if I remember correctly. Oliver. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
