directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1470143 - /directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Date Sat, 20 Apr 2013 10:15:10 GMT
Author: elecharny
Date: Sat Apr 20 10:15:10 2013
New Revision: 1470143

URL: http://svn.apache.org/r1470143
Log:
Don't null out the credentials when the session is anonymous, as it may be a pwdModify operation

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=1470143&r1=1470142&r2=1470143&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
Sat Apr 20 10:15:10 2013
@@ -403,7 +403,9 @@ public class AuthenticationInterceptor e
             LOG.debug( "Operation Context: {}", bindContext );
         }
 
-        if ( ( bindContext.getSession() != null ) && ( bindContext.getSession().getEffectivePrincipal()
!= null ) )
+        if ( ( bindContext.getSession() != null ) &&
+            ( bindContext.getSession().getEffectivePrincipal() != null ) &&
+            ( !bindContext.getSession().isAnonymous() ) )
         {
             // null out the credentials
             bindContext.setCredentials( null );



Mime
View raw message