From e59528243f3f148db4684925ddefa8b42f75c820 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Wed, 25 Feb 2009 16:23:12 +0000
Subject: [PATCH] Fix for issue #3826 (ldapsearch doesn't prompt bind password when the option -w is not provided) The behavior modification was introduced in rev #4956 in the following method: org.opends.server.tools.LDAPConnection.connectToHost()

---
 opends/src/server/org/opends/server/tools/LDAPConnection.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/tools/LDAPConnection.java b/opends/src/server/org/opends/server/tools/LDAPConnection.java
index e8d39fe..4386ddf 100644
--- a/opends/src/server/org/opends/server/tools/LDAPConnection.java
+++ b/opends/src/server/org/opends/server/tools/LDAPConnection.java
@@ -304,7 +304,7 @@
       ByteString bindPW;
       if (bindPassword == null)
       {
-        bindPW =  ByteString.empty();
+        bindPW =  null;
       }
       else
       {

--
Gitblit v1.10.0