On Tue, 8 Jan 2002 [EMAIL PROTECTED] wrote:
> Date: Tue, 08 Jan 2002 10:58:59 -0500
> From: [EMAIL PROTECTED]
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: about rlm_counter
>
> Aleksandr Kuzminsky <[EMAIL PROTECTED]> wrote:
> > I have two RADIUS servers and single Mysql database for
> > authorization and accounting. Also I use rlm_counter module
> > for authorization users depending their total AccSessionTime.
> > And thats my question.
> > Two radius servers store their own counter files.
> > Is it simple way to hold _single_ db.counter for several
> > radius servers?
>
> No.
>
> > As I know gdbm does not support this, so may be would better to use
> > mysql for this?
>
> Yes.
I tried to change gdbm with mysql in rlm_counter.
It seems work. But I did not good,
because man, who wants to use rlm_counter, must install mysql...
There are two ways to solve this problem.
First is to support gdbm & mysql. And if admin writes
'filename' in counter{...} then use gdbm. If he specify
host/user/passwd/db, then use mysql. but we'll have
a lot of 'if{}else{}'
Creation of new module is much worse thing as for me.
BTW, somebody needs such functionality?
---
Aleksandr Kuzminsky, AK476-RIPE
System Administrator, AK16-UANIC
ISP NBI.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html