1b64b7d
diff -up freeradius-1.1.7/raddb/radiusd.conf.in.db_dir freeradius-1.1.7/raddb/radiusd.conf.in
1b64b7d
--- freeradius-1.1.7/raddb/radiusd.conf.in.db_dir	2007-08-07 15:41:35.000000000 +0200
1b64b7d
+++ freeradius-1.1.7/raddb/radiusd.conf.in	2007-08-07 15:44:47.000000000 +0200
1b64b7d
@@ -33,6 +33,11 @@ radacctdir = @radacctdir@
1b64b7d
 confdir = ${raddbdir}
1b64b7d
 run_dir = ${localstatedir}/run/radiusd
1b64b7d
 
1b64b7d
+# Location of db files
1b64b7d
+# Please use this directory for all db files (e.g. db.daily, db.ippool and
1b64b7d
+# db.ipindex).
1b64b7d
+db_dir = ${localstatedir}/lib/radiusd
1b64b7d
+
1b64b7d
 #
1b64b7d
 #  The logging messages for the server are appended to the
1b64b7d
 #  tail of this file.
1b64b7d
@@ -1398,7 +1403,7 @@ $INCLUDE ${confdir}/eap.conf
1b64b7d
 	#  'check-name' attribute.
1b64b7d
 	#
1b64b7d
 	counter daily {
1b64b7d
-		filename = ${raddbdir}/db.daily
1b64b7d
+		filename = ${db_dir}/db.daily
1b64b7d
 		key = User-Name
1b64b7d
 		count-attribute = Acct-Session-Time
1b64b7d
 		reset = daily
1b64b7d
@@ -1713,10 +1718,10 @@ $INCLUDE ${confdir}/eap.conf
1b64b7d
 		cache-size = 800
1b64b7d
 
1b64b7d
 		# session-db: The main db file used to allocate ip's to clients
1b64b7d
-		session-db = ${raddbdir}/db.ippool
1b64b7d
+		session-db = ${db_dir}/db.ippool
1b64b7d
 
1b64b7d
 		# ip-index: Helper db index file used in multilink
1b64b7d
-		ip-index = ${raddbdir}/db.ipindex
1b64b7d
+		ip-index = ${db_dir}/db.ipindex
1b64b7d
 
1b64b7d
 		# override: Will this ippool override a Framed-IP-Address already set
1b64b7d
 		override = no