I'm having problems with the user authentication using ldap.
As far as I can tell the admin bind works fine.
However when I try to verify a normal username/password, I get an UnsupportedOperationException in the SimpleNamingContext.
AFAIK the ldap server is an Active Directory server.
My test code:
ServiceLocator serviceLocator = new ServiceLocatorBean(MockApplicationContext.getMockA pplicationContext());
UsernamePasswordAuthenticationToken authenticationToken = new UsernamePasswordAuthenticationToken(username, password);
AuthenticationProvider authenticationProvider = (AuthenticationProvider) serviceLocator.getAppContext().getBean("ldapAuthen ticationProvider");
authenticationProvider.authenticate(authentication Token);
I've attached the relevant piece of application context and the stacktrace, as they contain 'too many images' to post directly :-)
I have tried replacing the ',' with ';', putting '\\' in front of the ',' and using a PasswordComparisonAuthenticator instead of the BindAuthenticator.
All of them leading to weird and wonderful new errors.
Could anyone help me in the right direction?
regards,
Paul Siegmann


