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 2011/11/04 17:36:09 UTC
svn commit: r1197639 -
/directory/apacheds/branches/apacheds-osgi/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Author: elecharny
Date: Fri Nov 4 16:36:09 2011
New Revision: 1197639
URL: http://svn.apache.org/viewvc?rev=1197639&view=rev
Log:
Removed the bypass for the modify method
Modified:
directory/apacheds/branches/apacheds-osgi/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Modified: directory/apacheds/branches/apacheds-osgi/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-osgi/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java?rev=1197639&r1=1197638&r2=1197639&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-osgi/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java (original)
+++ directory/apacheds/branches/apacheds-osgi/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java Fri Nov 4 16:36:09 2011
@@ -146,31 +146,6 @@ public class AuthenticationInterceptor e
/**
- * the set of interceptors we should *not* go through when pwdpolicy state information is being updated
- */
- private static final Collection<String> BYPASS_INTERCEPTORS;
-
- static
- {
- Set<String> c = new HashSet<String>();
- c.add( "NormalizationInterceptor" );
- c.add( "AuthenticationInterceptor" );
- c.add( "AciAuthorizationInterceptor" );
- c.add( "AdministrativePointInterceptor" );
- c.add( "DefaultAuthorizationInterceptor" );
- c.add( "AdministrativePointInterceptor" );
- c.add( "ExceptionInterceptor" );
- c.add( "OperationalAttributeInterceptor" );
- c.add( "SchemaInterceptor" );
- c.add( "CollectiveAttributeInterceptor" );
- c.add( "SubentryInterceptor" );
- c.add( "EventInterceptor" );
- c.add( "TriggerInterceptor" );
- BYPASS_INTERCEPTORS = Collections.unmodifiableCollection( c );
- }
-
-
- /**
* Creates an authentication service interceptor.
*/
public AuthenticationInterceptor()
@@ -1021,10 +996,9 @@ public class AuthenticationInterceptor e
//adminSession.modify( dn, Collections.singletonList( pwdFailTimeMod ) );
ModifyOperationContext bindModCtx = new ModifyOperationContext( adminSession );
- bindModCtx.setByPassed( BYPASS_INTERCEPTORS );
bindModCtx.setDn( dn );
bindModCtx.setModItems( mods );
- directoryService.getOperationManager().modify( bindModCtx );
+ directoryService.getPartitionNexus().modify( bindModCtx );
}
String upDn = ( dn == null ? "" : dn.getName() );
@@ -1094,10 +1068,9 @@ public class AuthenticationInterceptor e
{
//adminSession.modify( dn, mods );
ModifyOperationContext bindModCtx = new ModifyOperationContext( adminSession );
- bindModCtx.setByPassed( BYPASS_INTERCEPTORS );
bindModCtx.setDn( dn );
bindModCtx.setModItems( mods );
- directoryService.getOperationManager().modify( bindModCtx );
+ directoryService.getPartitionNexus().modify( bindModCtx );
}
if ( isPPolicyReqCtrlPresent )