Blame SOURCES/freeradius-redhat-config.patch

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