@EnableWebSecurity
@Configuration(value="securityConfig")
@Order(value=-2147483648)
@ConditionalOnProperty(value="authentication.source",
havingValue="ad")
public class ActiveDirectoryLdapSecurityConfig
extends SecurityConfig
| Modifier and Type | Field and Description |
|---|---|
protected String |
groupSearchBase |
protected String |
groupSearchFilter |
protected String |
ldapURL |
protected String |
npaDn |
protected String |
npaPassword |
protected String |
roleAttribute |
protected String[] |
userDnPatterns |
protected String |
userSearchBase |
protected String |
userSearchFilter |
| Constructor and Description |
|---|
ActiveDirectoryLdapSecurityConfig() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) |
protected AuthenticationExceptionHandler |
getAuthenticationExceptionHandler() |
authenticationManagerBean, configure, logoutSuccessHandler, userContextMapperauthenticationManager, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean@Value(value="${ldap.user.search.base}")
protected String userSearchBase
@Value(value="${ldap.user.search.filter}")
protected String userSearchFilter
@Value(value="${ldap.group.search.base}")
protected String groupSearchBase
@Value(value="${ldap.group.search.filter}")
protected String groupSearchFilter
@Value(value="${ldap.url}")
protected String ldapURL
@Value(value="#{\'${ldap.user.dn.patterns}\'.split(\';\')}")
protected String[] userDnPatterns
@Value(value="${ldap.npa.dn}")
protected String npaDn
@Value(value="${ldap.npa.password}")
protected String npaPassword
@Value(value="${ldap.group.role.attribute}")
protected String roleAttribute
protected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
throws Exception
Exceptionprotected AuthenticationExceptionHandler getAuthenticationExceptionHandler()
getAuthenticationExceptionHandler in class SecurityConfigCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.