【发布时间】:2020-11-03 21:56:42
【问题描述】:
我正在运行一个 Spring-boot 应用程序,它通过我们的内部 LDAP 使用 spring-security-ldap 对用户进行身份验证。
默认情况下它以匿名方式与 LDAP 绑定。
Property 'userDn' not set - anonymous context will be used for read-write operations
但我希望第一个绑定使用当前用户名。
我应该在哪里指定 userDn 属性?
感谢您的建议
【问题讨论】:
-
通常,userDn 来自用户名输入。代码应将用户名解析为 DN,并使用该 DN + 密码输入进行身份验证(绑定)。
-
有没有办法验证 userDn 是否已正确归档?
标签: spring-boot ldap spring-ldap