Ldap Authentication failed message comes up "No AuthenticationProvider..."
Hi,
Using Ldap for Authentication. Authentication is working fine when entering the correct username/password. When the username or password is entered incorrectly this error message appears:
2008-08-22 11:27:11,543 DEBUG [org.springframework.security.ui.webapp.Authenticat ionProcessingFilter] - Authentication request failed: org.springframework.security.providers.ProviderNot FoundException: No AuthenticationProvider found for org.springframework.security.providers.UsernamePas swordAuthenticationToken
I'd like to know if it's possible to get a more meaningful error message like incorrect username or incorrect password. The error message is propagated to the UI, the "No AuthenticationProvider found ..." error message doesn't make much sense to the normal user.
I am trying to use LDAP authentication or petclinic example but I am getting follwing error message on my login page.
===================================
Your login attempt was not successful, try again.
Reason: No AuthenticationProvider found for org.springframework.security.providers.UsernamePas swordAuthenticationToken
=====================================
attached is my appcontext file.
LDAP authentication fails : No Authentication Providers found
Thank you so much for the reply.
I am trying to do LDAP authentication for last 3 days but still no luck.
I updated the applicationcontext file to use pure spring security removing acegi references but still I am getting the same error. Please help.
attached is my updated file.
Senior Member
Acegi Security System TeamSpring Team
Join Date
Aug 2004
Location
Glasgow, Scotland
Posts
3,449
Start with the LDAP sample application - i.e. a working configuration. Then modify it to fit your needs. You cannot configure a ProviderManager for use with the namespace - this is explained in the reference manual.
Hi
I got the sample application from link given in reference mannual and realised that I was missing below tag in my ldap authentication bean definition.