From 39d319d68cf8916be5fc4143c4ff0dfa6a1f0841 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Tue, 26 Jun 2007 11:11:22 +0000
Subject: [PATCH] startTLS should be based on ldap URL (not ldaps)
---
opendj-sdk/opends/src/server/org/opends/server/admin/client/cli/DsServiceCliMain.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/admin/client/cli/DsServiceCliMain.java b/opendj-sdk/opends/src/server/org/opends/server/admin/client/cli/DsServiceCliMain.java
index 1c0df1a..fb1e297 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/admin/client/cli/DsServiceCliMain.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/admin/client/cli/DsServiceCliMain.java
@@ -249,10 +249,10 @@
else
if (argParser.startTLS())
{
- String ldapsUrl = "ldaps://" + host + ":" + port;
+ String ldapUrl = "ldap://" + host + ":" + port;
try
{
- ctx = ConnectionUtils.createStartTLSContext(ldapsUrl, dn, pwd,
+ ctx = ConnectionUtils.createStartTLSContext(ldapUrl, dn, pwd,
ConnectionUtils.getDefaultLDAPTimeout(), null, argParser
.getTrustManager(), argParser.getKeyManager(), null);
}
--
Gitblit v1.10.0