directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lécharny <>
Subject Re: Fwd: Issues with External Authenticators
Date Tue, 06 May 2014 16:47:00 GMT
Le 5/6/14 4:34 PM, vamsi krishna a écrit :
> Hello,
> I am using Apache DS M18 Version. I have just updated from M10 release. I
> have observed a problem in your implementation w.r.t Authentication
> Interceptors. I am trying to add another authenticator, that basically uses
> a backend database to perform authentication. I have written an
> authentication interceptor, which is getting registered in the
> AuthenticationInterceptor class.
> The problem appears when you are setting the directoryService to each
> authenticator. When there are multiple Authenticators with the a common
> type example SIMPLE, then the following method
> register( Authenticator authenticator, DirectoryService directoryService )
> throws LdapException
> adds only the first Authenticator to the
> authenticators field
> During the next iteration when you are setting the DirectoryService to the
> AuthenticaionInterceptors in the method
> init( DirectoryService directoryService ) throws LdapException
> you are reading just the authenticators in the authenticators field. This
> results in some of the AuthenticationInterceptors missing the
> directoryService variable, which is very important for Querying from LDAP.
Can you fill a JIRA ?

i'm quite sure we are incorrectly handling the addition of
authenticators, as we don't have a equals() and hashcode() method for
any of the authenticator classes, leading to some potential error while
adding an new authenticator in the list.

Emmanuel Lécharny 

View raw message