c52eca
From 958f470cda2ba8943f02f13d1b46f357f92d9639 Mon Sep 17 00:00:00 2001
c52eca
From: Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
c52eca
Date: Mon, 8 Sep 2014 12:32:13 +0300
c52eca
Subject: [PATCH] Adjust configuration to fit Red Hat specifics
c52eca
c52eca
---
c52eca
 raddb/mods-available/eap | 4 ++--
c52eca
 raddb/radiusd.conf.in    | 7 +++----
c52eca
 2 files changed, 5 insertions(+), 6 deletions(-)
c52eca
c52eca
diff --git a/raddb/mods-available/eap b/raddb/mods-available/eap
c52eca
index 2621e183c..94494b2c6 100644
c52eca
--- a/raddb/mods-available/eap
c52eca
+++ b/raddb/mods-available/eap
c52eca
@@ -533,7 +533,7 @@
c52eca
 			#  You should also delete all of the files
c52eca
 			#  in the directory when the server starts.
c52eca
 			#
c52eca
-		#	tmpdir = /tmp/radiusd
c52eca
+		#	tmpdir = /var/run/radiusd/tmp
c52eca
 
c52eca
 			#  The command used to verify the client cert.
c52eca
 			#  We recommend using the OpenSSL command-line
c52eca
@@ -548,7 +548,7 @@
c52eca
 			#  deleted by the server when the command
c52eca
 			#  returns.
c52eca
 			#
c52eca
-		#	client = "/path/to/openssl verify -CApath ${..ca_path} %{TLS-Client-Cert-Filename}"
c52eca
+		#	client = "/usr/bin/openssl verify -CApath ${..ca_path} %{TLS-Client-Cert-Filename}"
c52eca
 		}
c52eca
 
c52eca
 		#  OCSP Configuration
c52eca
diff --git a/raddb/radiusd.conf.in b/raddb/radiusd.conf.in
c52eca
index a83c1f687..e500cf97b 100644
c52eca
--- a/raddb/radiusd.conf.in
c52eca
+++ b/raddb/radiusd.conf.in
c52eca
@@ -70,8 +70,7 @@ certdir = ${confdir}/certs
c52eca
 cadir   = ${confdir}/certs
c52eca
 run_dir = ${localstatedir}/run/${name}
c52eca
 
c52eca
-# Should likely be ${localstatedir}/lib/radiusd
c52eca
-db_dir = ${raddbdir}
c52eca
+db_dir = ${localstatedir}/lib/radiusd
c52eca
 
c52eca
 #
c52eca
 # libdir: Where to find the rlm_* modules.
c52eca
@@ -398,8 +397,8 @@ security {
c52eca
 	#  member.  This can allow for some finer-grained access
c52eca
 	#  controls.
c52eca
 	#
c52eca
-#	user = radius
c52eca
-#	group = radius
c52eca
+	user = radiusd
c52eca
+	group = radiusd
c52eca
 
c52eca
 	#  Core dumps are a bad thing.  This should only be set to
c52eca
 	#  'yes' if you're debugging a problem with the server.
c52eca
-- 
c52eca
2.13.2
c52eca