Aug 22nd, 2008, 01:38 PM
Ldap Authentication failed message comes up "No AuthenticationProvider..."
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.
Oct 27th, 2008, 07:42 PM
LDAP authentication problem
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.
can anyone please help me?
Oct 27th, 2008, 08:47 PM
You are using Acegi Security and Spring Security jars in the same app. This won't work.
Oct 27th, 2008, 09:14 PM
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.
Oct 27th, 2008, 09:40 PM
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.
Oct 27th, 2008, 11:50 PM
I tried to look for a sample LDAP authentication application on net but could not get one. Could you please provide me some link?
Oct 28th, 2008, 06:48 PM
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.
I finally got LDAP Authentication thing working
thanks for the help.