Multiple Databases

Phil Mayers p.mayers at imperial.ac.uk
Fri Sep 24 18:55:21 CEST 2010


On 24/09/10 17:18, sekchel lee wrote:
> I want Multiple databases
> group1  ==>  databases1
> group2 ==>  databases 2
> ..
> ..
> Please Help me

Have you read any docs? Or tried anything?

People don't like it when you ask questions but aren't willing to do any 
of the work.

You will need something like this:

sql.conf:

sql sql1 {
   ...
   # sql settings
}

sql sql2 {
   ...
   # sql settings
}

sites-availble/...:

authorize {
   ...
   if (Some-Group == ...) {
     sql1
   }
   elsif (Some-Group == ...) {
     sql2
   }
}


Obviously you will have to populate the "Some-Group" attribute using 
some other method; perhaps rlm_passwd or huntgroups.



More information about the Freeradius-Users mailing list