Class LdapConfiguration


  • @Configuration
    @Profile("ldap-auth")
    public class LdapConfiguration
    extends Object
    • Constructor Detail

      • LdapConfiguration

        public LdapConfiguration()
    • Method Detail

      • contextSource

        @Bean
        @ConfigurationProperties("ldap.source")
        public org.springframework.ldap.core.support.LdapContextSource contextSource()
      • ldapAttributesProperties

        @Bean
        @ConfigurationProperties("ldap.attributes")
        public LdapAttributesProperties ldapAttributesProperties()
      • ldapTemplate

        @Bean
        public org.springframework.ldap.core.LdapTemplate ldapTemplate​(org.springframework.ldap.core.support.LdapContextSource contextSource)
      • ldapUserDetailsService

        @Bean
        public LdapUserDetailsService ldapUserDetailsService​(org.springframework.ldap.core.LdapTemplate ldapTemplate,
                                                             LdapAttributesProperties ldapAttributesProperties,
                                                             org.springframework.ldap.core.AttributesMapper<UserDto> attributesMapper)
      • userDetailsContextMapper

        @Bean
        public org.springframework.security.ldap.userdetails.UserDetailsContextMapper userDetailsContextMapper​(LdapUserDetailsService ldapUserDetailsService)