From f3f9f37cd05c81867e2852746b169132d8f1b598 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 01 Jul 2016 14:30:12 +0000
Subject: [PATCH] Partial OPENDJ-2625 Convert all code that uses JNDI to use the SDK instead
---
opendj-server-legacy/src/main/java/org/opends/quicksetup/util/Utils.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/Utils.java b/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/Utils.java
index 6fc80bd..82e57bf 100644
--- a/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/Utils.java
+++ b/opendj-server-legacy/src/main/java/org/opends/quicksetup/util/Utils.java
@@ -76,6 +76,7 @@
import org.opends.admin.ads.SuffixDescriptor;
import org.opends.admin.ads.TopologyCacheException;
import org.opends.admin.ads.util.ConnectionUtils;
+import org.opends.admin.ads.util.ConnectionWrapper;
import org.opends.quicksetup.Constants;
import org.opends.quicksetup.Installation;
import org.opends.quicksetup.SecurityOptions;
@@ -956,11 +957,11 @@
/**
* Returns the current time of a server in milliseconds.
*
- * @param ctx
+ * @param conn
* the connection to the server.
* @return the current time of a server in milliseconds.
*/
- public static long getServerClock(InitialLdapContext ctx)
+ public static long getServerClock(ConnectionWrapper conn)
{
long time = -1;
SearchControls ctls = new SearchControls();
@@ -971,7 +972,7 @@
try
{
LdapName jndiName = new LdapName("cn=monitor");
- NamingEnumeration<?> listeners = ctx.search(jndiName, filter, ctls);
+ NamingEnumeration<?> listeners = conn.getLdapContext().search(jndiName, filter, ctls);
try
{
--
Gitblit v1.10.0