44d58a
From 0d05cf9318ff5861d9833007d46a4a7ed78cbafd Mon Sep 17 00:00:00 2001
75e927
From: Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
75e927
Date: Mon, 8 Sep 2014 12:32:13 +0300
44d58a
Subject: [PATCH] Adjust configuration to fit Red Hat specifics
75e927
75e927
---
75e927
 raddb/mods-available/eap | 4 ++--
75e927
 raddb/radiusd.conf.in    | 7 +++----
75e927
 2 files changed, 5 insertions(+), 6 deletions(-)
75e927
75e927
diff --git a/raddb/mods-available/eap b/raddb/mods-available/eap
44d58a
index 427016c66..9659db1cd 100644
75e927
--- a/raddb/mods-available/eap
75e927
+++ b/raddb/mods-available/eap
44d58a
@@ -470,7 +470,7 @@ eap {
08a4ed
 			#
08a4ed
 			#  You should also delete all of the files
08a4ed
 			#  in the directory when the server starts.
75e927
-	#		tmpdir = /tmp/radiusd
75e927
+	#		tmpdir = /var/run/radiusd/tmp
75e927
 
08a4ed
 			#  The command used to verify the client cert.
08a4ed
 			#  We recommend using the OpenSSL command-line
44d58a
@@ -484,7 +484,7 @@ eap {
08a4ed
 			#  in PEM format.  This file is automatically
08a4ed
 			#  deleted by the server when the command
08a4ed
 			#  returns.
75e927
-	#		client = "/path/to/openssl verify -CApath ${..ca_path} %{TLS-Client-Cert-Filename}"
75e927
+	#		client = "/usr/bin/openssl verify -CApath ${..ca_path} %{TLS-Client-Cert-Filename}"
08a4ed
 		}
75e927
 
08a4ed
 		#
75e927
diff --git a/raddb/radiusd.conf.in b/raddb/radiusd.conf.in
44d58a
index c62f4ffed..625f43447 100644
75e927
--- a/raddb/radiusd.conf.in
75e927
+++ b/raddb/radiusd.conf.in
75e927
@@ -70,8 +70,7 @@ certdir = ${confdir}/certs
a827c0
 cadir   = ${confdir}/certs
a827c0
 run_dir = ${localstatedir}/run/${name}
75e927
 
a827c0
-# Should likely be ${localstatedir}/lib/radiusd
a827c0
-db_dir = ${raddbdir}
a827c0
+db_dir = ${localstatedir}/lib/radiusd
75e927
 
a827c0
 #
a827c0
 # libdir: Where to find the rlm_* modules.
44d58a
@@ -436,8 +435,8 @@ security {
a827c0
 	#  member.  This can allow for some finer-grained access
a827c0
 	#  controls.
a827c0
 	#
a827c0
-#	user = radius
a827c0
-#	group = radius
a827c0
+	user = radiusd
a827c0
+	group = radiusd
75e927
 
a827c0
 	#  Core dumps are a bad thing.  This should only be set to
a827c0
 	#  'yes' if you're debugging a problem with the server.
75e927
-- 
44d58a
2.11.0
75e927