Re: 1 server - 2 databases

2004-12-28 Thread Admin
EROS wrote:
Hi all,
I have one radius server and I want the server ask several database to
authorize the users.
The parameter which determine the database to ask could be the
calledstationid.
Is anybody know how I could do this ?
Thx ...
Merry Christmas and Happy New Year
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

 

I'm using my own perl script to check availability my several databases. 
So, try to use rlm_perl.

--
Best regards,
Serg Shipaev, IP TELephony EXchange Ltd.
e-mail: [EMAIL PROTECTED]
- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: 1 server - 2 databases

2004-12-28 Thread Dustin Doris
 Hi all,

 I have one radius server and I want the server ask several database to
 authorize the users.

 The parameter which determine the database to ask could be the
 calledstationid.

 Is anybody know how I could do this ?



Setup two mysql configurations in the sql.conf file.

ie:

sql ONE {
  config options go here
}

sql TWO {
  config options go here
}

Add both sql configurations to the authorize section

ie:

authorize {
 other stuff
 autztype ONE {
ONE
 }
 autztype TWO {
TWO
 }
}

Setup the users file

DEFAULT Called-Station-Id == 33, Autz-Type := ONE

DEFAULT Called-Station-Id == 22, Autz-Type := TWO

Hope that helps

Dusty Doris


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html