From 6a6a18307477865c3f6c99158bf91d4816a0bc2b Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 11 Jul 2007 19:50:27 +0000
Subject: [PATCH] Update the bind processing code so that the ClientConnection.bindInProgress flag will not be unset between stages of a multi-stage SASL bind.

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

diff --git a/opends/src/server/org/opends/server/core/PasswordPolicy.java b/opends/src/server/org/opends/server/core/PasswordPolicy.java
index 14fea7d..6e5eb90 100644
--- a/opends/src/server/org/opends/server/core/PasswordPolicy.java
+++ b/opends/src/server/org/opends/server/core/PasswordPolicy.java
@@ -39,6 +39,7 @@
 import java.util.concurrent.CopyOnWriteArrayList;
 import java.util.concurrent.CopyOnWriteArraySet;
 
+import org.opends.server.admin.std.meta.PasswordPolicyCfgDefn;
 import org.opends.server.admin.std.server.PasswordPolicyCfg;
 import org.opends.server.admin.std.server.PasswordValidatorCfg;
 import org.opends.server.api.AccountStatusNotificationHandler;
@@ -215,6 +216,11 @@
   private CopyOnWriteArrayList<String> previousLastLoginTimeFormats =
        new CopyOnWriteArrayList<String>();
 
+  // The state update failure policy.
+  private PasswordPolicyCfgDefn.StateUpdateFailurePolicy
+       stateUpdateFailurePolicy =
+            PasswordPolicyCfgDefn.StateUpdateFailurePolicy.REACTIVE;
+
 
 
   /**
@@ -801,6 +807,11 @@
     // Get the idle lockout duration.
     this.idleLockoutInterval = (int) configuration.getIdleLockoutInterval();
 
+
+    // Get the state update failure policy.
+    this.stateUpdateFailurePolicy = configuration.getStateUpdateFailurePolicy();
+
+
     /*
      *  Holistic validation.
      */
@@ -1448,6 +1459,19 @@
 
 
   /**
+   * Retrieves the state update failure policy for this password policy.
+   *
+   * @return  The state update failure policy for this password policy.
+   */
+  public PasswordPolicyCfgDefn.StateUpdateFailurePolicy
+              getStateUpdateFailurePolicy()
+  {
+    return stateUpdateFailurePolicy;
+  }
+
+
+
+  /**
    * Retrieves a string representation of this password policy.
    *
    * @return  A string representation of this password policy.

--
Gitblit v1.10.0