Blame SOURCES/freeradius-Adjust-configuration-to-fit-Red-Hat-specifics.patch

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