You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2015/07/27 16:44:00 UTC

svn commit: r1692890 - /directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java

Author: elecharny
Date: Mon Jul 27 14:44:00 2015
New Revision: 1692890

URL: http://svn.apache.org/r1692890
Log:
A fix for DIRSERVER-2085 : we are now comparing the AttributeType, not the ID

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

Modified: directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java?rev=1692890&r1=1692889&r2=1692890&view=diff
==============================================================================
--- directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java (original)
+++ directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java Mon Jul 27 14:44:00 2015
@@ -1600,8 +1600,9 @@ public class AuthenticationInterceptor e
         for ( Modification m : mods )
         {
             Attribute at = m.getAttribute();
+            AttributeType passwordAttribute = schemaManager.lookupAttributeTypeRegistry( policyConfig.getPwdAttribute() );
 
-            if ( at.getUpId().equalsIgnoreCase( policyConfig.getPwdAttribute() ) )
+            if ( at.getAttributeType().equals( passwordAttribute ) )
             {
                 pwdModDetails.setPwdModPresent( true );
                 ModificationOperation op = m.getOperation();