I have implemented UserDetailsService and overriden loadUserByUsername(String username), here i need User entered password.
I want to authenticate against LdapTemplate authenticate(username,password).
I have searched a lot but dint get it.
Please help me.
Either use spring-security-ldap for LDAP based authentication or implement your own
AuthenticationProviderinstead ofDaoAuthenticationProvider.There are multiple authentication scenarios when using Spring Security LDAP:
For more information check Spring Security LDAP documentation.