From 20a5a72f2842bddd089de5d161b3e2b1c644a3d4 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Mon, 26 Mar 2007 22:00:15 +0000
Subject: [PATCH] Add two new password validators to OpenDS:
---
opends/src/server/org/opends/server/messages/ExtensionsMessages.java | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 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 ae4670c..bc856f8 100644
--- a/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
+++ b/opends/src/server/org/opends/server/messages/ExtensionsMessages.java
@@ -4807,6 +4807,25 @@
/**
+ * The message ID for the message that will be used if the same character
+ * appears too many times in consecutive order in a given password. This
+ * takes a single argument, which is the maximum number of times a character
+ * may appear in consecutive order.
+ */
+ public static final int MSGID_REPEATEDCHARS_VALIDATOR_TOO_MANY_CONSECUTIVE =
+ CATEGORY_MASK_EXTENSIONS | SEVERITY_MASK_MILD_ERROR | 457;
+
+
+ /**
+ * The message ID for the message that will be used if a given password does
+ * not have enough unique characters. This takes a single argument, which is
+ * the minimum number of unique characters that a password may contain.
+ */
+ public static final int MSGID_UNIQUECHARS_VALIDATOR_NOT_ENOUGH_UNIQUE_CHARS =
+ CATEGORY_MASK_EXTENSIONS | SEVERITY_MASK_MILD_ERROR | 458;
+
+
+ /**
* Associates a set of generic messages with the message IDs defined in this
* class.
*/
@@ -6930,6 +6949,19 @@
registerMessage(MSGID_DYNAMICGROUP_CANNOT_RETURN_ENTRY,
"The server encountered a timeout while attempting to " +
"add user %s to the member list for dynamic group %s.");
+
+
+ registerMessage(MSGID_REPEATEDCHARS_VALIDATOR_TOO_MANY_CONSECUTIVE,
+ "The provided password contained too many instances " +
+ "of the same character appearing consecutively. The " +
+ "maximum number of times the same character may appear " +
+ "consecutively in a password is %d.");
+
+
+ registerMessage(MSGID_UNIQUECHARS_VALIDATOR_NOT_ENOUGH_UNIQUE_CHARS,
+ "The provided password does not contain enough unique " +
+ "characters. The minimum number of unique characters " +
+ "that may appear in a user password is %d.");
}
}
--
Gitblit v1.10.0