summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-26 17:41:46 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-26 17:41:46 +0000
commit3ae3033800076fca0e9f5f491da2f420b610ffc2 (patch)
tree97fdaf4488aa6c643119917f8d26591d848a1363
parent9868ee94534af14a5b8b5fea86a6579ac754cda3 (diff)
downloadrsyslog-3ae3033800076fca0e9f5f491da2f420b610ffc2.tar.gz
rsyslog-3ae3033800076fca0e9f5f491da2f420b610ffc2.tar.xz
rsyslog-3ae3033800076fca0e9f5f491da2f420b610ffc2.zip
- fixed wrong pointer in imgssapi config coding
- added $InputGSSServerMaxSessions config directive
-rw-r--r--doc/imgssapi.html14
-rw-r--r--plugins/imgssapi/imgssapi.c2
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 @@
<p><b>Description</b>:</p>
<p>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 <a href="imtcp.html">imtcp</a>,
-which can not be used if imgssapi is used.</p>
+module also accept plain tcp syslog messages on the same port if configured to do so. If you need just plain tcp, use&nbsp; <a href="imtcp.html">imtcp</a> instead.</p>
<p><b>Configuration Directives</b>:</p>
<ul>
<li>InputGSSServerRun &lt;port&gt;<br>
@@ -22,19 +21,14 @@ The service name to use for the GSS server.</li>
<li>$InputGSSServerPermitPlainTCP on|<span style="font-weight: bold;">off</span><br>
Permits the server to receive plain tcp syslog (without GSS) on the
same port</li>
-<li>$InputTCPMaxSessions &lt;number&gt;<br>
+<li>$InputGSSServerMaxSessions &lt;number&gt;<br>
Sets the maximum number of sessions supported</li>
</ul>
<b>Caveats/Known Bugs:</b>
<ul>
<li>module always binds to all interfaces</li>
-<li>only a single listener can be bound (one each for GSS and
-plain TCP)</li>
-<li>duplicates <a href="imtcp.html">imtcp</a>
-functionality and thus conflicts with it. This will change in the
-future. Unfortunately, that also means that&nbsp;your config files
-probably&nbsp;need &nbsp;to be changed in the future when that
-change happens.</li>
+<li>only a single listener can be bound</li>
+
</ul>
<p><b>Sample:</b></p>
<p>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