From 70d594cec595cab0f430c0d1bdca41a2770cbfea Mon Sep 17 00:00:00 2001
From: Chris Ridd <chris.ridd@forgerock.com>
Date: Tue, 30 Oct 2012 17:38:23 +0000
Subject: [PATCH] Fix OPENDJ-618 DSML gateway should send an AuthResponse for the initial bind

---
 opends/src/dsml/org/opends/dsml/protocol/DSMLModifyDNOperation.java |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/opends/src/dsml/org/opends/dsml/protocol/DSMLModifyDNOperation.java b/opends/src/dsml/org/opends/dsml/protocol/DSMLModifyDNOperation.java
index e4cef5e..e5c7a77 100644
--- a/opends/src/dsml/org/opends/dsml/protocol/DSMLModifyDNOperation.java
+++ b/opends/src/dsml/org/opends/dsml/protocol/DSMLModifyDNOperation.java
@@ -30,6 +30,7 @@
 
 
 import java.io.IOException;
+import java.util.List;
 
 import org.opends.messages.Message;
 import org.opends.server.tools.LDAPConnection;
@@ -68,6 +69,7 @@
    *
    * @param  objFactory       The object factory for this operation.
    * @param  modifyDNRequest  The modify DN request for this operation.
+   * @param  controls         Any required controls (e.g. for proxy authz).
    *
    * @return  The result of the modify DN operation.
    *
@@ -80,7 +82,8 @@
    *                         element.
    */
   public LDAPResult doOperation(ObjectFactory objFactory,
-        ModifyDNRequest modifyDNRequest)
+        ModifyDNRequest modifyDNRequest,
+        List<org.opends.server.types.Control> controls)
     throws IOException, LDAPException, ASN1Exception
   {
     LDAPResult modDNResponse = objFactory.createLDAPResult();
@@ -103,7 +106,8 @@
     }
 
     // Create and send the LDAP request to the server.
-    LDAPMessage msg = new LDAPMessage(DSMLServlet.nextMessageID(), op);
+    LDAPMessage msg = new LDAPMessage(DSMLServlet.nextMessageID(), op,
+        controls);
     connection.getLDAPWriter().writeMessage(msg);
 
     // Read and decode the LDAP response from the server.

--
Gitblit v1.10.0