【发布时间】:2019-10-25 17:57:03
【问题描述】:
我通过以下方式使用 Spring LDAP 身份验证:
auth
.ldapAuthentication()
.userSearchFilter("userPrincipalName={0}")
.contextSource()
.managerDn(ldapAuthenticationConfig.getManagerDn())
.managerPassword(ldapAuthenticationConfig.getManagerPassword())
.url(ldapAuthenticationConfig.getUrl());
但是,当 LDAP 服务器不可用时,登录页面会花费太多时间。我想知道我是否可以在相当长的时间内登录。
这是我使用的依赖项:
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-ldap</artifactId>
</dependency>
如何在 Spring Boot 中设置 LDAP 身份验证的超时值?
【问题讨论】:
标签: spring-boot timeout spring-ldap