From 174a86cbd43f370aeb15b7423efc8d2726df739b Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Fri, 14 Sep 2007 15:09:56 +0000
Subject: [PATCH] fix for issue #2257 (dsconfig/security: truststore doesn't seem to be taken into account when a a keystore is specfiied)
---
opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java b/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
index 9832afa..19388c9 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/dsconfig/LDAPManagementContextFactory.java
@@ -109,6 +109,7 @@
ctx = ConnectionUtils.createLdapsContext(ldapsUrl, bindDN,
bindPassword, ConnectionUtils.getDefaultLDAPTimeout(), null,
trustManager, keyManager);
+ ctx.reconnect(null);
conn = JNDIDirContextAdaptor.adapt(ctx);
break;
}
@@ -157,6 +158,7 @@
ctx = ConnectionUtils.createStartTLSContext(ldapUrl, bindDN,
bindPassword, ConnectionUtils.getDefaultLDAPTimeout(), null,
trustManager, keyManager, null);
+ ctx.reconnect(null);
conn = JNDIDirContextAdaptor.adapt(ctx);
break;
}
--
Gitblit v1.10.0