From f71675cbfac30a4f56b48082d24359fa53909c09 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 05 Jul 2007 06:01:56 +0000
Subject: [PATCH] Update the SASL ANONYMOUS mechanism handler so that any trace string will be written to the access log in the additional log message.
---
opendj-sdk/opends/src/server/org/opends/server/extensions/AnonymousSASLMechanismHandler.java | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/extensions/AnonymousSASLMechanismHandler.java b/opendj-sdk/opends/src/server/org/opends/server/extensions/AnonymousSASLMechanismHandler.java
index c2539f5..f9ed346 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/extensions/AnonymousSASLMechanismHandler.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/extensions/AnonymousSASLMechanismHandler.java
@@ -104,13 +104,18 @@
public void processSASLBind(BindOperation bindOperation)
{
// See if the client provided SASL credentials including trace information.
- // If so, then log it to the error log.
+ // If so, then write it to the access log as additional log information, and
+ // as an informational message to the error log.
ByteString saslCredentials = bindOperation.getSASLCredentials();
if (saslCredentials != null)
{
String credString = saslCredentials.stringValue();
if (credString.length() > 0)
{
+ bindOperation.appendAdditionalLogMessage("trace='");
+ bindOperation.appendAdditionalLogMessage(credString);
+ bindOperation.appendAdditionalLogMessage("'");
+
logError(ErrorLogCategory.REQUEST_HANDLING,
ErrorLogSeverity.INFORMATIONAL, MSGID_SASLANONYMOUS_TRACE,
bindOperation.getConnectionID(),
--
Gitblit v1.10.0