Added db_dir. Database files should go into a writeable
authoraland <aland>
Sat, 19 Jan 2008 22:26:29 +0000 (22:26 +0000)
committeraland <aland>
Sat, 19 Jan 2008 22:26:29 +0000 (22:26 +0000)
directory, and not /etc/raddb

raddb/experimental.conf
raddb/radiusd.conf.in

index 278b813..2c16a1b 100644 (file)
        # cache-rejects: Do we also cache rejects, or not? (default 'yes')
        #
        caching {
-               filename = ${confdir}/db.cache
+               filename = ${db_dir}/db.cache
                cache-ttl = 1d
                hit-ratio = 1000
                key = "%{Acct-Unique-Session-Id}"
index 897fb52..e50e3af 100644 (file)
@@ -31,6 +31,7 @@ sbindir = @sbindir@
 logdir = @logdir@
 raddbdir = @raddbdir@
 radacctdir = @radacctdir@
+db_dir = $(raddbdir)
 
 #  Location of config and logfiles.
 confdir = ${raddbdir}
@@ -1419,7 +1420,7 @@ $INCLUDE eap.conf
        #  'check-name' attribute.
        #
        counter daily {
-               filename = ${confdir}/db.daily
+               filename = ${db_dir}/db.daily
                key = User-Name
                count-attribute = Acct-Session-Time
                reset = daily
@@ -1714,11 +1715,11 @@ $INCLUDE eap.conf
 
                # session-db:
                #       The main db file used to allocate addresses.
-               session-db = ${confdir}/db.ippool
+               session-db = ${db_dir}/db.ippool
 
                # ip-index:
                #       Helper db index file used in multilink
-               ip-index = ${confdir}/db.ipindex
+               ip-index = ${db_dir}/db.ipindex
 
                # override:
                #       If set, the Framed-IP-Address already in the