From 3ae3033800076fca0e9f5f491da2f420b610ffc2 Mon Sep 17 00:00:00 2001
From: Rainer Gerhards
Date: Tue, 26 Feb 2008 17:41:46 +0000
Subject: - fixed wrong pointer in imgssapi config coding - added
$InputGSSServerMaxSessions config directive
---
doc/imgssapi.html | 14 ++++----------
plugins/imgssapi/imgssapi.c | 2 ++
2 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/doc/imgssapi.html b/doc/imgssapi.html
index 09d89701..af15e59e 100644
--- a/doc/imgssapi.html
+++ b/doc/imgssapi.html
@@ -10,8 +10,7 @@
Description:
Provides the ability to receive syslog messages from the
network protected via Kerberos 5 encryption and authentication. This
-module also contains the functionality found in imtcp,
-which can not be used if imgssapi is used.
+module also accept plain tcp syslog messages on the same port if configured to do so. If you need just plain tcp, use imtcp instead.
Configuration Directives:
- InputGSSServerRun <port>
@@ -22,19 +21,14 @@ The service name to use for the GSS server.
- $InputGSSServerPermitPlainTCP on|off
Permits the server to receive plain tcp syslog (without GSS) on the
same port
-- $InputTCPMaxSessions <number>
+ - $InputGSSServerMaxSessions <number>
Sets the maximum number of sessions supported
Caveats/Known Bugs:
- module always binds to all interfaces
-- only a single listener can be bound (one each for GSS and
-plain TCP)
-- duplicates imtcp
-functionality and thus conflicts with it. This will change in the
-future. Unfortunately, that also means that your config files
-probably need to be changed in the future when that
-change happens.
+- only a single listener can be bound
+
Sample:
This sets up a GSS server on port 1514 that also permits to
diff --git a/plugins/imgssapi/imgssapi.c b/plugins/imgssapi/imgssapi.c
index e3bd183c..01e4cdea 100644
--- a/plugins/imgssapi/imgssapi.c
+++ b/plugins/imgssapi/imgssapi.c
@@ -373,6 +373,8 @@ CODEmodInit_QueryRegCFSLineHdlr
addGSSListener, NULL, STD_LOADABLE_MODULE_ID));
CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputgssserverservicename", 0, eCmdHdlrGetWord,
NULL, &gss_listen_service_name, STD_LOADABLE_MODULE_ID));
+ CHKiRet(omsdRegCFSLineHdlr((uchar *)"inputgssservermaxsessions", 0, eCmdHdlrInt,
+ NULL, &iTCPSessMax, STD_LOADABLE_MODULE_ID));
CHKiRet(omsdRegCFSLineHdlr((uchar *)"resetconfigvariables", 1, eCmdHdlrCustomHandler,
resetConfigVariables, NULL, STD_LOADABLE_MODULE_ID));
ENDmodInit
--
cgit