From 5ceb2e9601d2501d021d0c61188ec913076555a0 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Wed, 26 Sep 2007 12:21:02 +0000
Subject: [PATCH] Merge branches/temp-admin@3208 onto trunk@3208.

---
 opends/src/server/org/opends/server/extensions/LengthBasedPasswordValidator.java |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/opends/src/server/org/opends/server/extensions/LengthBasedPasswordValidator.java b/opends/src/server/org/opends/server/extensions/LengthBasedPasswordValidator.java
index d95e0f3..4c1d303 100644
--- a/opends/src/server/org/opends/server/extensions/LengthBasedPasswordValidator.java
+++ b/opends/src/server/org/opends/server/extensions/LengthBasedPasswordValidator.java
@@ -88,8 +88,8 @@
 
     // Make sure that if both the maximum and minimum lengths are set, the
     // maximum length is greater than or equal to the minimum length.
-    int maxLength = configuration.getMaximumPasswordLength();
-    int minLength = configuration.getMinimumPasswordLength();
+    int maxLength = configuration.getMaxPasswordLength();
+    int minLength = configuration.getMinPasswordLength();
     if ((maxLength > 0) && (minLength > 0) && (minLength > maxLength))
     {
       Message message =
@@ -124,14 +124,14 @@
 
     int numChars = newPassword.stringValue().length();
 
-    int minLength = config.getMinimumPasswordLength();
+    int minLength = config.getMinPasswordLength();
     if ((minLength > 0) && (numChars < minLength))
     {
       invalidReason.append(ERR_PWLENGTHVALIDATOR_TOO_SHORT.get(minLength));
       return false;
     }
 
-    int maxLength = config.getMaximumPasswordLength();
+    int maxLength = config.getMaxPasswordLength();
     if ((maxLength > 0) && (numChars > maxLength))
     {
       invalidReason.append(ERR_PWLENGTHVALIDATOR_TOO_LONG.get(minLength));
@@ -166,8 +166,8 @@
   {
     // Make sure that if both the maximum and minimum lengths are set, the
     // maximum length is greater than or equal to the minimum length.
-    int maxLength = configuration.getMaximumPasswordLength();
-    int minLength = configuration.getMinimumPasswordLength();
+    int maxLength = configuration.getMaxPasswordLength();
+    int minLength = configuration.getMinPasswordLength();
     if ((maxLength > 0) && (minLength > 0) && (minLength > maxLength))
     {
       Message message = ERR_PWLENGTHVALIDATOR_MIN_GREATER_THAN_MAX.get(

--
Gitblit v1.10.0