Re: use more radius-mysql databases

2005-02-25 Thread Thor Spruyt
[EMAIL PROTECTED] wrote:
 i have a freeradiusserver with a connection to a mysql db. now i want
 to unstall a new customer. for this customer i want to use a seperate
 database. how can i uinstall this?

You can define multiple instances of a module:
See doc/rlm_sql:

5. Instances

  Just like any other module, multiple instances of the rlm_sql
  module can be defined and used wherever you like.

  The default .conf files for the different database types,
  contain 1 instance without a name like so:
  sql {
...
  }

  You can create multiple named instances like so:
  sql sql_instance1 {
...
  }
  sql sql_instance2 {
...
  }

  And then you can use a specific instance in radiusd.conf, like
  so:
  authorize {
...
sql_instance1
...
  }
  accounting {
...
sql_instance1
sql_instance2
...
  }


-- 
Groeten, Regards, Salutations,

Thor Spruyt
M: +32 (0)475 67 22 65
E: [EMAIL PROTECTED]
W: www.thor-spruyt.com

www.salesguide.be
www.telenethotspot.be


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


Re: use more radius-mysql databases

2005-02-25 Thread flusione
thanks, it was very helpful for me. now i have the effect, that i get also
entries in the radacct of all other accounts. that means, it's doesn't
select if the accounting comes from customer a or customer b



 [EMAIL PROTECTED] wrote:
  i have a freeradiusserver with a connection to a mysql db. now i want
  to unstall a new customer. for this customer i want to use a seperate
  database. how can i uinstall this?
 
 You can define multiple instances of a module:
 See doc/rlm_sql:
 
 5. Instances
 
   Just like any other module, multiple instances of the rlm_sql
   module can be defined and used wherever you like.
 
   The default .conf files for the different database types,
   contain 1 instance without a name like so:
   sql {
 ...
   }
 
   You can create multiple named instances like so:
   sql sql_instance1 {
 ...
   }
   sql sql_instance2 {
 ...
   }
 
   And then you can use a specific instance in radiusd.conf, like
   so:
   authorize {
 ...
 sql_instance1
 ...
   }
   accounting {
 ...
 sql_instance1
 sql_instance2
 ...
   }
 
 
 -- 
 Groeten, Regards, Salutations,
 
 Thor Spruyt
 M: +32 (0)475 67 22 65
 E: [EMAIL PROTECTED]
 W: www.thor-spruyt.com
 
 www.salesguide.be
 www.telenethotspot.be
 
 
 - 
 List info/subscribe/unsubscribe? See
 http://www.freeradius.org/list/users.html
 

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