类 LdapAuthPluginConfig
java.lang.Object
com.alibaba.nacos.plugin.auth.impl.ldap.LdapAuthPluginConfig
@Configuration(proxyBeanMethods=false)
@EnableAutoConfiguration(exclude=org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration.class)
@Conditional(ConditionOnLdapAuth.class)
public class LdapAuthPluginConfig
extends Object
ldap auth config.
- 作者:
- onewe
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明org.springframework.security.config.annotation.authentication.configuration.GlobalAuthenticationConfigurerAdapterauthenticationConfigurer(LdapAuthenticationProvider ldapAuthenticationProvider) ldapAuthenticationProvider(org.springframework.ldap.core.LdapTemplate ldapTemplate, NacosUserService userDetailsService, NacosRoleService nacosRoleService) ldapAuthenticatoinManager(org.springframework.ldap.core.LdapTemplate ldapTemplate, NacosUserService userDetailsService, TokenManagerDelegate jwtTokenManager, NacosRoleService roleService) org.springframework.ldap.core.support.LdapContextSourceorg.springframework.ldap.core.LdapTemplateldapTemplate(org.springframework.ldap.core.support.LdapContextSource ldapContextSource)
-
字段详细资料
-
ldapUrl
-
ldapBaseDc
-
ldapTimeOut
-
userDn
-
password
-
filterPrefix
-
caseSensitive
@Value("${nacos.core.auth.ldap.case.sensitive:true}") private boolean caseSensitive -
ignorePartialResultException
@Value("${nacos.core.auth.ldap.ignore.partial.result.exception:false}") private boolean ignorePartialResultExceptionLDAP Ignore partial result exceptionLdapTemplate.setIgnorePartialResultException(boolean).
-
-
构造器详细资料
-
LdapAuthPluginConfig
public LdapAuthPluginConfig()
-
-
方法详细资料
-
ldapTemplate
@Bean public org.springframework.ldap.core.LdapTemplate ldapTemplate(org.springframework.ldap.core.support.LdapContextSource ldapContextSource) -
ldapContextSource
@Bean public org.springframework.ldap.core.support.LdapContextSource ldapContextSource() -
ldapAuthenticationProvider
@Bean public LdapAuthenticationProvider ldapAuthenticationProvider(org.springframework.ldap.core.LdapTemplate ldapTemplate, NacosUserService userDetailsService, NacosRoleService nacosRoleService) -
ldapAuthenticatoinManager
@Bean public IAuthenticationManager ldapAuthenticatoinManager(org.springframework.ldap.core.LdapTemplate ldapTemplate, NacosUserService userDetailsService, TokenManagerDelegate jwtTokenManager, NacosRoleService roleService) -
authenticationConfigurer
@Bean public org.springframework.security.config.annotation.authentication.configuration.GlobalAuthenticationConfigurerAdapter authenticationConfigurer(LdapAuthenticationProvider ldapAuthenticationProvider)
-