From a172bd1c78dc92255574e05c5b63cb9bcc81a26c Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 26 Mar 2007 00:36:12 +0000
Subject: [PATCH] Add a new password validator that determines whether a proposed new password is acceptable based on how similar it is to the user's current password.  The processing uses the Levenshtein Distance algorithm to determine the number of changes required to convert the current password into the new password (a change may be either inserting a new character, removing an existing character, or replacing an existing character).

---
 opendj-sdk/opends/src/server/org/opends/server/config/ConfigConstants.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/config/ConfigConstants.java b/opendj-sdk/opends/src/server/org/opends/server/config/ConfigConstants.java
index 28c167c..8eb3ad5 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/config/ConfigConstants.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/config/ConfigConstants.java
@@ -1419,6 +1419,12 @@
   public static final String ATTR_PASSWORD_MIN_LENGTH =
        NAME_PREFIX_CFG + "minimum-password-length";
 
+  /**
+   * The name of the configuration attribute that specifies the minimum allowed
+   * difference for a password.
+   */
+  public static final String ATTR_PASSWORD_MIN_DIFFERENCE =
+       NAME_PREFIX_CFG + "minimum-password-difference";
 
 
   /**

--
Gitblit v1.10.0