You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2013/09/17 08:14:12 UTC

svn commit: r1523918 - /directory/apacheds/trunk/interceptors/hash/src/main/java/org/apache/directory/server/core/hash/PasswordHashingInterceptor.java

Author: kayyagari
Date: Tue Sep 17 06:14:12 2013
New Revision: 1523918

URL: http://svn.apache.org/r1523918
Log:
replace the plain text password with the hashed password (DIRSERVER-1900)

Modified:
    directory/apacheds/trunk/interceptors/hash/src/main/java/org/apache/directory/server/core/hash/PasswordHashingInterceptor.java

Modified: directory/apacheds/trunk/interceptors/hash/src/main/java/org/apache/directory/server/core/hash/PasswordHashingInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/interceptors/hash/src/main/java/org/apache/directory/server/core/hash/PasswordHashingInterceptor.java?rev=1523918&r1=1523917&r2=1523918&view=diff
==============================================================================
--- directory/apacheds/trunk/interceptors/hash/src/main/java/org/apache/directory/server/core/hash/PasswordHashingInterceptor.java (original)
+++ directory/apacheds/trunk/interceptors/hash/src/main/java/org/apache/directory/server/core/hash/PasswordHashingInterceptor.java Tue Sep 17 06:14:12 2013
@@ -81,7 +81,13 @@ public abstract class PasswordHashingInt
 
         Attribute pwdAt = entry.get( SchemaConstants.USER_PASSWORD_AT );
 
-        includeHashedPassword( pwdAt );
+        Attribute hashedPwdAt = includeHashedPassword( pwdAt );
+        
+        if ( hashedPwdAt != null )
+        {
+            entry.remove( pwdAt );
+            entry.add( hashedPwdAt );
+        }
 
         next( addContext );
     }