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 2013/04/20 12:15:10 UTC
svn commit: r1470143 -
/directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
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 );