directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1022917 - /directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Date Fri, 15 Oct 2010 13:47:26 GMT
Author: kayyagari
Date: Fri Oct 15 13:47:25 2010
New Revision: 1022917

URL: http://svn.apache.org/viewvc?rev=1022917&view=rev
Log:
o another patch for a fixing DIRSERVER-1567

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

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java?rev=1022917&r1=1022916&r2=1022917&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Fri Oct 15 13:47:25 2010
@@ -917,9 +917,9 @@ public class AuthenticationInterceptor e
                 LOG.info( "Cannot bind to the server " );
             }
 
-            if ( policyConfig != null )
+            if ( ( policyConfig != null ) && ( userEntry != null ) )
             {
-                EntryAttribute pwdFailTimeAt = bindContext.getEntry().get( PWD_FAILURE_TIME_AT
);
+                EntryAttribute pwdFailTimeAt = userEntry.get( PWD_FAILURE_TIME_AT );
                 if ( pwdFailTimeAt == null )
                 {
                     pwdFailTimeAt = new DefaultEntryAttribute( AT_PWD_FAILURE_TIME );



Mime
View raw message