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

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