directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1523918 - /directory/apacheds/trunk/interceptors/hash/src/main/java/org/apache/directory/server/core/hash/PasswordHashingInterceptor.java
Date Tue, 17 Sep 2013 06:14:12 GMT
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 );
     }



Mime
View raw message