directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1483451 - /directory/apacheds/trunk/interceptors/authn/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Date Thu, 16 May 2013 17:07:37 GMT
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 );
+        }
     }
 
 



Mime
View raw message