【发布时间】:2021-09-11 18:07:48
【问题描述】:
我正在尝试通过组织 ldap 服务器进行身份验证。当我输入凭据时,我遇到了这个错误。有人可以帮忙吗?
这是我的配置:
@Override
public void configure(AuthenticationManagerBuilder auth) throws Exception {
auth
.ldapAuthentication().userDnPatterns("username={0},ou=people").contextSource()
.url("ldap://ldap.example.com:389/dc=ms,ddc=ds,dc=example,dc=com").and().passwordCompare()
.passwordAttribute("password");
【问题讨论】:
标签: java spring spring-boot ldap spring-security-ldap