From 785fcca7ef16dd93aaa3ca22e17a812ab6ac250a Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Wed, 11 Jul 2007 22:25:46 +0000
Subject: [PATCH] Update the password policy configuration to support a new attribute, ds-cfg-state-update-failure-policy.  This attribute makes it possible to control how the server should handle failures that may occur when attempting to update password policy state information during a bind operation.  This attribute allows the following values:

---
 opends/src/server/org/opends/server/messages/CoreMessages.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/CoreMessages.java b/opends/src/server/org/opends/server/messages/CoreMessages.java
index 54350d9..470fb15 100644
--- a/opends/src/server/org/opends/server/messages/CoreMessages.java
+++ b/opends/src/server/org/opends/server/messages/CoreMessages.java
@@ -6257,6 +6257,18 @@
 
 
   /**
+   * The message ID for the message that will be used if a bind attempt is
+   * rejected because either the entire server or the user's backend has a
+   * writability mode of "disabled" and the server would not be able to update
+   * the authentication failure count or the last login time.  This takes a
+   * single argument, which is the target user DN.
+   */
+  public static final int MSGID_BIND_OPERATION_WRITABILITY_DISABLED =
+       CATEGORY_MASK_CORE | SEVERITY_MASK_MILD_ERROR | 628;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined
    * in this class.
    */
@@ -8329,6 +8341,11 @@
     registerMessage(MSGID_BIND_OPERATION_INSECURE_SIMPLE_BIND,
                     "Rejecting a simple bind request for user %s because the " +
                     "password policy requires secure authentication");
+    registerMessage(MSGID_BIND_OPERATION_WRITABILITY_DISABLED,
+                    "Rejecting a bind request for user %s because either " +
+                    "the entire server or the user's backend has a " +
+                    "writability mode of 'disabled' and password policy " +
+                    "state updates would not be allowed");
     registerMessage(MSGID_BIND_OPERATION_ACCOUNT_DISABLED,
                     "Rejecting a bind request for user %s because the " +
                     "account has been administrative disabled");

--
Gitblit v1.10.0