From cae0b3dbcf69335667bde9e7586d1ba146dda0cd Mon Sep 17 00:00:00 2001
From: Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Date: Fri, 03 Jun 2016 12:19:33 +0000
Subject: [PATCH] Fix: Use the LDAPContext to get an internal connection.
---
opendj-server-legacy/src/main/java/org/opends/server/protocols/http/LDAPContext.java | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/LDAPContext.java b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/LDAPContext.java
index bb99b76..6370220 100644
--- a/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/LDAPContext.java
+++ b/opendj-server-legacy/src/main/java/org/opends/server/protocols/http/LDAPContext.java
@@ -17,10 +17,10 @@
package org.opends.server.protocols.http;
import org.forgerock.opendj.ldap.Connection;
-import org.forgerock.opendj.ldap.DN;
import org.forgerock.opendj.ldap.LdapException;
import org.forgerock.services.context.AbstractContext;
import org.forgerock.services.context.Context;
+import org.opends.server.types.Entry;
/**
* Context provided by a Directory Server. It contains a reference to a
@@ -64,13 +64,12 @@
/**
* Get a direct {@link Connection} to this Directory Server.
*
- * @param userDN
- * DN of the user's used to validate authorization.
+ * @param userEntry
+ * The returned connection will be authenticated as userEntry.
* @return A direct {@link Connection} to this Directory Server.
* @throws LdapException
- * If a connection cannot be create (i.e: because the userDN
- * doesn't exists).
+ * If a connection cannot be created (i.e: because an administrative limit has been exceeded).
*/
- Connection getConnection(DN userDN) throws LdapException;
+ Connection getAuthenticatedConnection(Entry userEntry) throws LdapException;
}
}
\ No newline at end of file
--
Gitblit v1.10.0