From 4287153a2c0323d20e6619c4ea52fa8057ff946d Mon Sep 17 00:00:00 2001
From: coulbeck <coulbeck@localhost>
Date: Wed, 25 Jul 2007 17:31:32 +0000
Subject: [PATCH] Fix for issue #1015: ldapsearch --verbose option doesn't work. This change causes ldapsearch and ldapmodify verbose options to trace the contents of incoming and outgoing LDAP messages and ASN.1 elements to standard error stream. It excludes search-result-entry messages from the trace since this would be rather too verbose and not very useful. The main use for verbose output is to investigate connection problems, referral following and such. A possible improvement would be to use a separate option for the ASN.1 tracing, and add session related output such as connection details, security context details and auth details as well as referral chasing details (all this must currently be derived from the protocol trace).
---
opends/src/server/org/opends/server/tools/LDAPConnectionOptions.java | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/opends/src/server/org/opends/server/tools/LDAPConnectionOptions.java b/opends/src/server/org/opends/server/tools/LDAPConnectionOptions.java
index 42bf06a..6a280b5 100644
--- a/opends/src/server/org/opends/server/tools/LDAPConnectionOptions.java
+++ b/opends/src/server/org/opends/server/tools/LDAPConnectionOptions.java
@@ -52,6 +52,7 @@
private int versionNumber = 3;
private Map<String, List<String>> saslProperties =
new HashMap<String, List<String>> ();
+ private boolean verbose = false;
/**
* Creates a the connection options instance.
@@ -302,5 +303,24 @@
{
this.usePasswordPolicyControl = usePasswordPolicyControl;
}
+
+ /**
+ * Indicates whether verbose tracing is enabled.
+ *
+ * @return <CODE>true</CODE> if verbose tracing is enabled.
+ */
+ public boolean isVerbose()
+ {
+ return verbose;
+ }
+
+ /**
+ * Specifies whether verbose tracing should be enabled.
+ * @param verbose Specifies whether verbose tracing should be enabled.
+ */
+ public void setVerbose(boolean verbose)
+ {
+ this.verbose = verbose;
+ }
}
--
Gitblit v1.10.0