From 2c7b8d6d8c0c177e8089272140dae66b87852ff7 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Tue, 17 Jul 2007 21:59:32 +0000
Subject: [PATCH] Implement support for password history functionality.  The password history can be maintained either based on the number of previous passwords to remember (e.g., a user cannot re-use any of his/her last five passwords), or the length of time the previous passwords have been retained (e.g., a user cannot re-use any password he/she has had within the last 365 days), or both.

---
 opends/src/server/org/opends/server/messages/CoreMessages.java |   12 ++++++++++++
 1 files changed, 12 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 470fb15..1c0331c 100644
--- a/opends/src/server/org/opends/server/messages/CoreMessages.java
+++ b/opends/src/server/org/opends/server/messages/CoreMessages.java
@@ -6269,6 +6269,15 @@
 
 
   /**
+   * The message ID for the message that will be used if a new password is found
+   * in the password history.  This does not take any arguments.
+   */
+  public static final int MSGID_MODIFY_PW_IN_HISTORY =
+       CATEGORY_MASK_CORE | SEVERITY_MASK_MILD_ERROR | 629;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined
    * in this class.
    */
@@ -7504,6 +7513,9 @@
     registerMessage(MSGID_MODIFY_PW_VALIDATION_FAILED,
                     "The provided password value was rejected by a password " +
                     "validator:  %s");
+    registerMessage(MSGID_MODIFY_PW_IN_HISTORY,
+                    "The provided new password was found in the password " +
+                    "history for the user");
     registerMessage(MSGID_MODIFY_INCREMENT_REQUIRES_INTEGER_VALUE,
                     "Entry %s cannot be modified because an attempt was " +
                     "made to increment the value of attribute %s but the " +

--
Gitblit v1.10.0