We are trying to use Spring security for authenticating against our enterprise LDAP. I\'m using ActiveDirectoryLdapAuthenticationProvider
. Below is the snippet
It looks like you might be a bit confused about what ActiveDirectoryLdapAuthenticationProvider
does and how to configure it. It binds using an email-like name in the form user@domain.com
where domain.com
is the argument you've supplied in the first constructor. It doesn't use a standard LDAP DN. This is specific to Active Directory and not part of standard LDAP.
You might also want to take a look at the source and Javadoc for the class.
If you already had a standard LDAP authentication configuration working with your setup, then it's not clear why you would want to change. You're probably better sticking with what you have as it won't be directly compatible with ActiveDirectoryLdapAuthenticationProvider
.