directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Giamma (JIRA)" <directory-...@incubator.apache.org>
Subject [jira] Created: (DIREVE-178) Custom authenticator is never called
Date Tue, 05 Jul 2005 22:26:16 GMT
Custom authenticator is never called
------------------------------------

         Key: DIREVE-178
         URL: http://issues.apache.org/jira/browse/DIREVE-178
     Project: Directory Server
        Type: Bug
  Components: server main  
    Versions: 0.9    
    Reporter: Giamma
 Assigned to: Alex Karasulu 


I wrote a custom authenticator that will authenticate against our database.
The problem is that it's never called in AuthenticationService.process().

It looks like process() will loop through the configured authenticator, starting with the
default one:

  for (Iterator i = authenticators.iterator(); i.hasNext(); idx++) {
            try {
                Authenticator authenticator = (Authenticator) i.next();

                // perform the authentication

                LdapPrincipal authorizationId = authenticator.authenticate(ctx);

                .....
             }
 }

Unfortunately SimpleAuthenticator will generate a LdapNameNotFoundException exception and
process() will just bail out.
Instead it should try the next authenticator.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message