From 90a85f0fed34b0a7d6db93022074a39a17ad27b7 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Fri, 24 Apr 2009 17:05:14 +0000
Subject: [PATCH] Fix for issue where unit tests hang when the startTLS extended operation is used.

---
 opends/src/server/org/opends/server/core/DirectoryServer.java |   11 -----------
 1 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/opends/src/server/org/opends/server/core/DirectoryServer.java b/opends/src/server/org/opends/server/core/DirectoryServer.java
index 5a8ab3a..cddf0d2 100644
--- a/opends/src/server/org/opends/server/core/DirectoryServer.java
+++ b/opends/src/server/org/opends/server/core/DirectoryServer.java
@@ -211,7 +211,6 @@
 import org.opends.server.types.ObjectClass;
 import org.opends.server.types.ObjectClassType;
 import org.opends.server.types.OperatingSystem;
-import org.opends.server.types.OperationType;
 import org.opends.server.types.Privilege;
 import org.opends.server.types.RestoreConfig;
 import org.opends.server.types.ResultCode;
@@ -7248,17 +7247,7 @@
   public static void enqueueRequest(AbstractOperation operation)
          throws DirectoryException
   {
-    // See if a bind is already in progress on the associated connection.  If so
-    // then reject the operation.
     ClientConnection clientConnection = operation.getClientConnection();
-    if (clientConnection.bindInProgress() &&
-        (operation.getOperationType() != OperationType.BIND))
-    {
-      Message message = ERR_ENQUEUE_BIND_IN_PROGRESS.get();
-      throw new DirectoryException(ResultCode.CONSTRAINT_VIOLATION, message);
-    }
-
-
     //Reject or accept the unauthenticated requests based on the configuration
     // settings.
     if ((directoryServer.rejectUnauthenticatedRequests ||

--
Gitblit v1.10.0