From 5b7afcc00e450bf639610f27af7a1c3a3562a020 Mon Sep 17 00:00:00 2001
From: Yannick Lecaillez <yannick.lecaillez@forgerock.com>
Date: Thu, 19 May 2016 15:10:45 +0000
Subject: [PATCH] Rest2Ldap: Removed connection reuse, simplify authorization filtering, use factory methods, add more unit tests.

---
 opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/AuthenticationStrategy.java |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/AuthenticationStrategy.java b/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/AuthenticationStrategy.java
index 9101def..a84d497 100644
--- a/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/AuthenticationStrategy.java
+++ b/opendj-rest2ldap/src/main/java/org/forgerock/opendj/rest2ldap/authz/AuthenticationStrategy.java
@@ -15,9 +15,6 @@
  */
 package org.forgerock.opendj.rest2ldap.authz;
 
-import java.util.concurrent.atomic.AtomicReference;
-
-import org.forgerock.opendj.ldap.Connection;
 import org.forgerock.opendj.ldap.LdapException;
 import org.forgerock.services.context.Context;
 import org.forgerock.services.context.SecurityContext;
@@ -34,11 +31,7 @@
      *            Password used to perform the authentication.
      * @param parentContext
      *            Context to use as parent for the created {@link SecurityContext}
-     * @param authenticatedConnectionHolder
-     *            Output parameter. If supported, the implementations will set the reference to a ready to be used LDAP
-     *            connection bound to the given credentials.
      * @return A {@link Context} if the authentication succeed or an {@link LdapException} otherwise.
      */
-    Promise<SecurityContext, LdapException> authenticate(String username, String password, Context parentContext,
-            AtomicReference<Connection> authenticatedConnectionHolder);
+    Promise<SecurityContext, LdapException> authenticate(String username, String password, Context parentContext);
 }

--
Gitblit v1.10.0