From 5d8bdf3c45ba5425410a8ca278ae6df9655f3c71 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Fri, 14 Dec 2007 09:51:02 +0000
Subject: [PATCH] Fix for issue #2648 (dsconfig/dsreplication do not work with ipv6 address): Before creating the ldapURL, check if we have an IPv6 address

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

diff --git a/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java b/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
index 5be487c..52b7250 100644
--- a/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
+++ b/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
@@ -119,7 +119,7 @@
     {
       // Interact with the user though the console to get
       // LDAP connection information
-      String hostName = ci.getHostName();
+      String hostName = ConnectionUtils.getHostNameForLdapUrl(ci.getHostName());
       Integer portNumber = ci.getPortNumber();
       String bindDN = ci.getBindDN();
       String bindPassword = ci.getBindPassword();

--
Gitblit v1.10.0