Blame SOURCES/freeradius-redhat-config.patch

75e927
From 61aa3696bb0179a8296e4f389f34ffc31424dbf1 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
75e927
Subject: [PATCH 1/1] 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
75e927
index 6938171..95ef666 100644
75e927
--- a/raddb/mods-available/eap
75e927
+++ b/raddb/mods-available/eap
75e927
@@ -430,7 +430,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
75e927
@@ -444,7 +444,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
75e927
index 307ae10..7cf71be 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.
75e927
@@ -415,8 +414,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
-- 
75e927
2.1.0
75e927