Spring ActiveDirectoryLdapAuthenticationProvider handleBindException - Supplied password was invalid error

后端 未结 1 1122
南方客
南方客 2021-01-03 10:04

We are trying to use Spring security for authenticating against our enterprise LDAP. I\'m using ActiveDirectoryLdapAuthenticationProvider. Below is the snippet

相关标签:
1条回答
  • 2021-01-03 10:20

    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.

    0 讨论(0)
提交回复
热议问题