Rohaizam Abu Bakar wrote:
>>> How can we possible do to ensure only when sql1 down.. then the
>>> accounting will be sent to sql2..??
>>
>> You might try a different approach:
>> - store accounting in "detail" files (man rlm_detail)
>> - run radsqlrelay to send accounting in the database (get it from
>> a CVS snapshot)
>
> Thanks.. Will try it out...
>
> Do I need to make any addition/changes in Makefile to compile
> radsqlrelay...? If yes... What changes is needed..
Indeed, radsqlrelay is something new and it is not build with the
server in the current CVS.
You could apply the following patch on the CVS version to build
radsqlrelay, too.
Index: src/main/Makefile.in
===================================================================
RCS file: /source/radiusd/src/main/Makefile.in,v
retrieving revision 1.36
diff -u -r1.36 Makefile.in
--- src/main/Makefile.in 3 Dec 2004 18:24:31 -0000 1.36
+++ src/main/Makefile.in 26 Jan 2005 10:50:22 -0000
@@ -20,7 +20,7 @@
MODULE_OBJS =
VFLAGS = -DRADIUSD_MAJOR_VERSION=$(RADIUSD_MAJOR_VERSION)
VFLAGS += -DRADIUSD_MINOR_VERSION=$(RADIUSD_MINOR_VERSION)
-BINARIES = radiusd radwho radzap radclient radrelay
+BINARIES = radiusd radwho radzap radclient radrelay radsqlrelay
LT_BIN_FLAGS =
#
@@ -137,6 +137,12 @@
radrelay.o: radrelay.c $(INCLUDES)
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c radrelay.c
+radsqlrelay: radsqlrelay.o mainconfig.o util.o nas.o client.o log.o conffile.o
files.o xlat.o valuepair.o ../lib/libradius.la
+ $(LIBTOOL) --mode=link $(CC) -export-dynamic -dlopen self $(CFLAGS)
$(LDFLAGS) -o radsqlrelay radsqlrelay.o mainconfig.o util.o nas.o client.o
log.o conffile.o files.o xlat.o valuepair.o $(LIBLTDL) $(LCRYPT) $(LIBS)
+
+radsqlrelay.o: radsqlrelay.c $(INCLUDES)
+ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c radsqlrelay.c
+
radwho.o: radwho.c $(INCLUDES)
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c radwho.c
@@ -159,5 +165,6 @@
$(INSTALL) -m 755 radlast $(R)$(bindir)
$(LIBTOOL) --mode=install $(INSTALL) -m 755 radclient$(EXEEXT)
$(R)$(bindir)
$(LIBTOOL) --mode=install $(INSTALL) -m 755 radrelay$(EXEEXT)
$(R)$(bindir)
+ $(LIBTOOL) --mode=install $(INSTALL) -m 755 radsqlrelay$(EXEEXT)
$(R)$(bindir)
$(INSTALL) -m 755 radtest $(R)$(bindir)
$(INSTALL) -m 755 checkrad.pl $(R)$(sbindir)/checkrad
--
Nicolas Baradakis
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html