Package pro.taskana.common.rest.ldap
Class LdapConfiguration
- java.lang.Object
-
- pro.taskana.common.rest.ldap.LdapConfiguration
-
@Configuration public class LdapConfiguration extends Object
Configuration for Ldap access.
-
-
Constructor Summary
Constructors Constructor Description LdapConfiguration(String ldapServerUrl, String ldapBaseDn, String ldapBindDn, String ldapBindPassword)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.ldap.core.support.LdapContextSourceldapContextSource()org.springframework.ldap.core.LdapTemplateldapTemplate(org.springframework.ldap.core.support.LdapContextSource ldapContextSource)
-
-
-
Constructor Detail
-
LdapConfiguration
public LdapConfiguration(@Value("${taskana.ldap.serverUrl:ldap://localhost:10389}") String ldapServerUrl, @Value("${taskana.ldap.baseDn:OU=Test,O=TASKANA}") String ldapBaseDn, @Value("${taskana.ldap.bindDn:uid=admin}") String ldapBindDn, @Value("${taskana.ldap.bindPassword:secret}") String ldapBindPassword)
-
-
Method Detail
-
ldapContextSource
@Bean @ConditionalOnMissingBean(org.springframework.ldap.core.support.LdapContextSource.class) public org.springframework.ldap.core.support.LdapContextSource ldapContextSource()
-
ldapTemplate
@Bean @ConditionalOnMissingBean(org.springframework.ldap.core.LdapTemplate.class) public org.springframework.ldap.core.LdapTemplate ldapTemplate(org.springframework.ldap.core.support.LdapContextSource ldapContextSource)
-
-