|
|
75e927 |
From 1b32a0e398871f0f5b7b41d200b1b9db371e84d5 Mon Sep 17 00:00:00 2001
|
|
|
75e927 |
From: Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com>
|
|
|
75e927 |
Date: Mon, 15 Dec 2014 16:48:26 +0200
|
|
|
75e927 |
Subject: [PATCH 1/1] raddb: Move trigger.conf INCLUDE before modules
|
|
|
75e927 |
|
|
|
75e927 |
Move "$INCLUDE trigger.conf" chunk before module section in
|
|
|
75e927 |
"radiusd.conf.in". This makes it possible to reference "snmptrap" and
|
|
|
75e927 |
related trigger variables under "pool.trigger" in module configurations,
|
|
|
75e927 |
simplifying them.
|
|
|
75e927 |
|
|
|
75e927 |
E.g. like this (in raddb/mods-enabled/ldap):
|
|
|
75e927 |
|
|
|
75e927 |
ldap ldap_instance {
|
|
|
75e927 |
pool {
|
|
|
75e927 |
trigger {
|
|
|
75e927 |
args = "radiusdModuleName s '${...:name}' radiusdModuleInstance s '${...:instance}'"
|
|
|
75e927 |
open = "${snmptrap}::serverModuleConnectionUp ${args}"
|
|
|
75e927 |
close = "${snmptrap}::serverModuleConnectionDown ${args}"
|
|
|
75e927 |
}
|
|
|
75e927 |
}
|
|
|
75e927 |
}
|
|
|
75e927 |
---
|
|
|
75e927 |
raddb/radiusd.conf.in | 16 ++++++++--------
|
|
|
75e927 |
1 file changed, 8 insertions(+), 8 deletions(-)
|
|
|
75e927 |
|
|
|
75e927 |
diff --git a/raddb/radiusd.conf.in b/raddb/radiusd.conf.in
|
|
|
75e927 |
index c6d5834..fb7d1bd 100644
|
|
|
75e927 |
--- a/raddb/radiusd.conf.in
|
|
|
75e927 |
+++ b/raddb/radiusd.conf.in
|
|
|
75e927 |
@@ -648,6 +648,14 @@ thread pool {
|
|
|
75e927 |
auto_limit_acct = no
|
|
|
75e927 |
}
|
|
|
75e927 |
|
|
|
75e927 |
+######################################################################
|
|
|
75e927 |
+#
|
|
|
75e927 |
+# SNMP notifications. Uncomment the following line to enable
|
|
|
75e927 |
+# snmptraps. Note that you MUST also configure the full path
|
|
|
75e927 |
+# to the "snmptrap" command in the "trigger.conf" file.
|
|
|
75e927 |
+#
|
|
|
75e927 |
+#$INCLUDE trigger.conf
|
|
|
75e927 |
+
|
|
|
75e927 |
# MODULE CONFIGURATION
|
|
|
75e927 |
#
|
|
|
75e927 |
# The names and configuration of each module is located in this section.
|
|
|
75e927 |
@@ -780,14 +788,6 @@ policy {
|
|
|
75e927 |
|
|
|
75e927 |
######################################################################
|
|
|
75e927 |
#
|
|
|
75e927 |
-# SNMP notifications. Uncomment the following line to enable
|
|
|
75e927 |
-# snmptraps. Note that you MUST also configure the full path
|
|
|
75e927 |
-# to the "snmptrap" command in the "trigger.conf" file.
|
|
|
75e927 |
-#
|
|
|
75e927 |
-#$INCLUDE trigger.conf
|
|
|
75e927 |
-
|
|
|
75e927 |
-######################################################################
|
|
|
75e927 |
-#
|
|
|
75e927 |
# Load virtual servers.
|
|
|
75e927 |
#
|
|
|
75e927 |
# This next $INCLUDE line loads files in the directory that
|
|
|
75e927 |
--
|
|
|
75e927 |
2.1.3
|
|
|
75e927 |
|