From f6617fb89ef9b57aee493b9d5d60c8184a263618 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 29 Sep 2009 13:33:18 +0000
Subject: [PATCH] Fix associated with issue 3871. Use the correct methods in ConnectionUtils to generate the LDAP urls to be used to connect to the server.
---
opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ControlPanelInfo.java | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ControlPanelInfo.java b/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ControlPanelInfo.java
index d76d7c7..3a02c47 100644
--- a/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ControlPanelInfo.java
+++ b/opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ControlPanelInfo.java
@@ -1083,14 +1083,13 @@
SortedSet<InetAddress> addresses = desc.getAddresses();
if (addresses.size() == 0) {
if (port > 0) {
- url = "ldaps://localhost:" + port;
+ url = ConnectionUtils.getLDAPUrl("localhost", port, true);
}
} else {
if (port > 0) {
InetAddress address = addresses.first();
- url = "ldaps://" +
- ConnectionUtils.getHostNameForLdapUrl(address.getHostAddress()) + ":"
- + port;
+ String a = address.getHostAddress();
+ url = ConnectionUtils.getLDAPUrl(a, port, true);
}
}
}
--
Gitblit v1.10.0