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/ExtensionsMessages.java |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/ExtensionsMessages.java b/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
index 36d4a23..e4006f6 100644
--- a/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
+++ b/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
@@ -5502,6 +5502,16 @@
 
 
   /**
+   * The message ID for the message that will be used if a password change is
+   * rejected because the new password was found in the password history.  This
+   * does not take any arguments.
+   */
+  public static final int MSGID_EXTOP_PASSMOD_PW_IN_HISTORY =
+       CATEGORY_MASK_EXTENSIONS | SEVERITY_MASK_MILD_ERROR | 530;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined in this
    * class.
    */
@@ -5786,6 +5796,9 @@
     registerMessage(MSGID_EXTOP_PASSMOD_UNACCEPTABLE_PW,
                     "The provided new password failed the validation checks " +
                     "defined in the server:  %s");
+    registerMessage(MSGID_EXTOP_PASSMOD_PW_IN_HISTORY,
+                    "The provided new password was already contained in the " +
+                    "password history");
     registerMessage(MSGID_EXTOP_PASSMOD_CANNOT_ENCODE_PASSWORD,
                     "Unable to encode the provided password using the " +
                     "default scheme(s):  %s");

--
Gitblit v1.10.0