Package pro.taskana.common.rest.ldap
Class LdapConfiguration
java.lang.Object
pro.taskana.common.rest.ldap.LdapConfiguration
Configuration for Ldap access.
-
Constructor Summary
ConstructorsConstructorDescriptionLdapConfiguration(String ldapServerUrl, String ldapBaseDn, String ldapBindDn, String ldapBindPassword) -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.ldap.core.support.LdapContextSourceorg.springframework.ldap.core.LdapTemplateldapTemplate(org.springframework.ldap.core.support.LdapContextSource ldapContextSource)
-
Constructor Details
-
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 Details
-
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)
-