From f53bba8367c579bdd75586df0ef9237aa166eafb Mon Sep 17 00:00:00 2001
From: kenneth_suter <kenneth_suter@localhost>
Date: Wed, 05 Sep 2007 12:44:51 +0000
Subject: [PATCH] Expanded the number or arguments that indicate that a remote operation is to be performed from just -h (host) to also include -p (port) and -D (bind DN)

---
 opends/src/server/org/opends/server/util/args/LDAPConnectionArgumentParser.java |    5 +----
 1 files changed, 1 insertions(+), 4 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 c017d1f..4444905 100644
--- a/opends/src/server/org/opends/server/util/args/LDAPConnectionArgumentParser.java
+++ b/opends/src/server/org/opends/server/util/args/LDAPConnectionArgumentParser.java
@@ -169,10 +169,7 @@
    *         false otherwise
    */
   public boolean isLdapOperation() {
-    // This may not be ideal in all cases.  We might want to assume no
-    // host means 'localhost'.  However we would still need some way to
-    // tell whether the user intends this invocation to be remote.
-    return host.isPresent();
+    return host.isPresent() || port.isPresent() || bindDN.isPresent();
   }
 
   /**

--
Gitblit v1.10.0