Issue Details (XML | Word | Printable)

Key: DIRSERVER-365
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Trustin Lee
Reporter: Giamma
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Directory ApacheDS

Custom authenticator is never called

Created: 06/Jul/05 07:16 AM   Updated: 21/Apr/07 11:13 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 12/Aug/05 04:50 PM


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Repository Revision Date User Message
ASF #232227 Fri Aug 12 07:49:35 UTC 2005 trustin DIREVE-178
* Fixed SimpleAuthenticator not to throw LdapNameNotFoundExecption.
* Made AuthenticationService to log unexpected exceptions while authenticating.
Files Changed
MODIFY /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/AuthenticationService.java
MODIFY /directory/apacheds/trunk/core/src/main/java/org/apache/ldap/server/authn/SimpleAuthenticator.java