From e11b9eac5eac70b10e06d0adb13d44cf70c8ed9c Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 26 Sep 2007 18:52:25 +0000
Subject: [PATCH] Addresses issue 2338 in which manage-tasks signals an error if the user tries to use SSL connection options.  The reason for the error is that LDAPConnectionArgumentParser does not properly support initialization of the LDAPConnectionOption's SSL connection factory.  This change involves adding some state variables to LDAPConnectionConsoleInteraction that are populated during the session

---
 opends/src/server/org/opends/server/util/args/LDAPConnectionArgumentParser.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/args/LDAPConnectionArgumentParser.java b/opends/src/server/org/opends/server/util/args/LDAPConnectionArgumentParser.java
index fecee2e..0d404e5 100644
--- a/opends/src/server/org/opends/server/util/args/LDAPConnectionArgumentParser.java
+++ b/opends/src/server/org/opends/server/util/args/LDAPConnectionArgumentParser.java
@@ -38,6 +38,7 @@
 import static org.opends.server.util.StaticUtils.wrapText;
 import org.opends.server.util.cli.LDAPConnectionConsoleInteraction;
 import org.opends.server.admin.client.cli.SecureConnectionCliArgs;
+import org.opends.server.types.OpenDsException;
 
 import java.util.LinkedList;
 import java.util.LinkedHashSet;
@@ -357,8 +358,8 @@
               ui.getBindDN(),
               ui.getBindPassword(),
               ui.populateLDAPOptions(options), out, err);
-    } catch (ArgumentException ae) {
-      err.println(ae.getMessageObject());
+    } catch (OpenDsException e) {
+      err.println(e.getMessageObject());
     }
     return connection;
   }

--
Gitblit v1.10.0