From ed803f46487547b3134c8fd58b12916372556878 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 08 Apr 2008 11:07:16 +0000
Subject: [PATCH] Fix for issue 3129 (stop-ds: -j/--bindPasswordFile option doesn't work) In fact the issue applies to most of the task based command-lines (like export-ldif or import-ldif). THe fix consist basically on taking into account whether the user provided the password in a file or not.
---
opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java b/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java
index 40fd29e..a24bec3 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/LDAPAuthenticationHandler.java
@@ -293,6 +293,7 @@
{
System.out.print(INFO_LDAPAUTH_PASSWORD_PROMPT.get(
bindDN.stringValue()));
+ System.out.flush();
char[] pwChars = PasswordReader.readPassword();
if (pwChars == null)
{
--
Gitblit v1.10.0