From 86b64fdb326ff8af99792391f95ccd7fd6c3a7b7 Mon Sep 17 00:00:00 2001
From: Ludovic Poitou <ludovic.poitou@forgerock.com>
Date: Fri, 18 Nov 2011 16:33:13 +0000
Subject: [PATCH] Fix issue OPENDJ-358. The following tools will now prompt a password if needed and if none has been provided. Works with either the absence of -w and -j option, but also with -w - (dash becomes a trigger for prompting the password and thus an invalid password in itself). backup, restore, import-ldif, export-ldif, stop-ds (when used with specific options), manage-account, rebuild-index
---
opendj-sdk/opends/src/server/org/opends/server/tools/StopDS.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/StopDS.java b/opendj-sdk/opends/src/server/org/opends/server/tools/StopDS.java
index 93701e2..219702c 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/StopDS.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/StopDS.java
@@ -23,6 +23,7 @@
*
*
* Copyright 2006-2010 Sun Microsystems, Inc.
+ * Portions Copyright 2011 ForgeRock AS
*/
package org.opends.server.tools;
import org.opends.messages.Message;
@@ -615,7 +616,8 @@
connection = new LDAPConnection(host.getValue(), port.getIntValue(),
connectionOptions, out, err);
connection.connectToHost(bindDN.getValue(),
- LDAPConnectionArgumentParser.getPasswordValue(bindPW, bindPWFile),
+ LDAPConnectionArgumentParser.getPasswordValue(bindPW, bindPWFile,
+ bindDN, out, err),
nextMessageID);
}
catch (ArgumentException ae)
--
Gitblit v1.10.0