Class ActiveDirectoryLdapSecurityConfig
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.auth.SecurityConfig
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.auth.ldap.ActiveDirectoryLdapSecurityConfig
-
- All Implemented Interfaces:
org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>,org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
@EnableWebSecurity @Configuration("securityConfig") @Order(-2147483648) @ConditionalOnProperty(value="authentication.source", havingValue="ad") public class ActiveDirectoryLdapSecurityConfig extends SecurityConfig
-
-
Field Summary
Fields Modifier and Type Field Description protected StringgroupSearchBaseprotected StringgroupSearchFilterprotected StringldapURLprotected StringnpaDnprotected StringnpaPasswordprotected StringroleAttributeprotected String[]userDnPatternsprotected StringuserSearchBaseprotected StringuserSearchFilter
-
Constructor Summary
Constructors Constructor Description ActiveDirectoryLdapSecurityConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconfigure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)protected AuthenticationExceptionHandlergetAuthenticationExceptionHandler()-
Methods inherited from class org.odpi.openmetadata.userinterface.uichassis.springboot.auth.SecurityConfig
authenticationManagerBean, configure, logoutSuccessHandler, userContextMapper
-
Methods inherited from class org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
-
-
-
Field Detail
-
userSearchBase
@Value("${ldap.user.search.base}") protected String userSearchBase
-
userSearchFilter
@Value("${ldap.user.search.filter}") protected String userSearchFilter
-
groupSearchBase
@Value("${ldap.group.search.base}") protected String groupSearchBase
-
groupSearchFilter
@Value("${ldap.group.search.filter}") protected String groupSearchFilter
-
ldapURL
@Value("${ldap.url}") protected String ldapURL
-
userDnPatterns
@Value("#{\'${ldap.user.dn.patterns}\'.split(\';\')}") protected String[] userDnPatterns
-
npaDn
@Value("${ldap.npa.dn}") protected String npaDn
-
npaPassword
@Value("${ldap.npa.password}") protected String npaPassword
-
roleAttribute
@Value("${ldap.group.role.attribute}") protected String roleAttribute
-
-
Method Detail
-
configure
protected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth) throws Exception- Throws:
Exception
-
getAuthenticationExceptionHandler
protected AuthenticationExceptionHandler getAuthenticationExceptionHandler()
- Specified by:
getAuthenticationExceptionHandlerin classSecurityConfig
-
-