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/05/16 19:07:37 UTC

svn commit: r1483451 - /directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java

Author: elecharny
Date: Thu May 16 17:07:36 2013
New Revision: 1483451

URL: http://svn.apache.org/r1483451
Log:
Made the interceptor register method update the list of authenticators 

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=1483451&r1=1483450&r2=1483451&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 Thu May 16 17:07:36 2013
@@ -285,9 +285,13 @@ public class AuthenticationInterceptor e
         {
             authenticatorList = new ArrayList<Authenticator>();
             authenticatorsMapByType.put( authenticator.getAuthenticatorType(), authenticatorList );
+            authenticators.add( authenticator );
         }
 
-        authenticatorList.add( authenticator );
+        if ( !authenticatorList.contains( authenticator ) )
+        {
+            authenticatorList.add( authenticator );
+        }
     }