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