From 815cf928723695217a930f2f5a3baf9a4a19d057 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).

---
 opends/resource/config/config.ldif |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/opends/resource/config/config.ldif b/opends/resource/config/config.ldif
index ee095b6..4679b65 100644
--- a/opends/resource/config/config.ldif
+++ b/opends/resource/config/config.ldif
@@ -1098,6 +1098,15 @@
 ds-cfg-minimum-password-length: 6
 ds-cfg-maximum-password-length: 0
 
+dn: cn=Similarity-Based Password Validator,cn=Password Validators,cn=config
+objectClass: top
+objectClass: ds-cfg-password-validator
+objectClass: ds-cfg-similarity-based-password-validator
+cn: Similarity-Based Password Validator
+ds-cfg-password-validator-class: org.opends.server.extensions.SimilarityBasedPasswordValidator
+ds-cfg-password-validator-enabled: true
+ds-cfg-minimum-password-difference: 3
+
 dn: cn=Plugins,cn=config
 objectClass: top
 objectClass: ds-cfg-branch

--
Gitblit v1.10.0