directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r963818 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/PasswordPolicyConfiguration.java
Date Tue, 13 Jul 2010 18:54:05 GMT
Author: kayyagari
Date: Tue Jul 13 18:54:05 2010
New Revision: 963818

URL: http://svn.apache.org/viewvc?rev=963818&view=rev
Log:
o fixed a false positive which will arise when maxAge value is zero

Modified:
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/PasswordPolicyConfiguration.java

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/PasswordPolicyConfiguration.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/PasswordPolicyConfiguration.java?rev=963818&r1=963817&r2=963818&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/PasswordPolicyConfiguration.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/PasswordPolicyConfiguration.java
Tue Jul 13 18:54:05 2010
@@ -438,7 +438,7 @@ public class PasswordPolicyConfiguration
             sb.append( ++errCount ).append( ". password maximum length cannot be negative\n"
);
         }
 
-        if ( pwdMaxLength < pwdMinLength )
+        if ( ( pwdMaxLength > 0 ) && ( pwdMaxLength < pwdMinLength ) )
         {
             sb.append( ++errCount ).append( ". password maximum length should be greater
than minimum length\n" );
         }



Mime
View raw message