Okay i understand that ( i hope so):
Now i do this in radiusd.conf:

modules {

# same place where this $INCLUDE ${confdir}/sql.conf
$INCLUDE ${confdir}/sql1.conf
$INCLUDE ${confdir}/sql2.conf
# insert this i reed this in the doc confiruable_failover
always handled {
rcode = handled
}
# i copy sql.conf to sql1.conf and sql2.conf and edit this files
# and edit the begin in sql1.conf to sql sql1{ and in the sql2.conf i edit sql sql2{


accounting {
# i place this in accounting and remove sql
 redundant {
       sql1   # try module sql1
       sql2   # if that's down, try module sql2
handled   # otherwise drop the request as
     }

I get this error cat /var/log/radius/radius.log
Sat Jan 15 13:35:19 2005 : Error: ERROR: Cannot find a configuration entry for module "sql".





----- Original Message ----- From: "Alan DeKok" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Saturday, January 15, 2005 1:26 AM
Subject: Re: SQL db failover



"Michel van Dop" <[EMAIL PROTECTED]> wrote:
So i leave the default config in radiusd.conf include the file sql.conf
and put this in my radiusd.conf:

$INCLUDE  ${confdir}/sql.conf

modules {

Once again, the include for sql.conf MUST BE INSIDE of the "modules" section. It's there in the default config. Why do you expect it to work when you move it outside?

    sql sql1 {
      driver = "rlm_sql_mysql
      server="myfirstserver.example"
      # Insert the rest of config of sql.conf in here

Why? Just copy "sql.conf" to "sql1.conf" and "sql2.conf". Edit THOSE files to start off with "sql sql1 {" and "sql sql2 {" instead of just "sql {". Then, $INCLUDE both of the files in radiusd.conf, in the SAME PLACE that the normal sql.conf file is included.

 Alan DeKok.


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


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

Reply via email to