@Configuration public class LdapConfiguration extends Object
| Constructor and Description |
|---|
LdapConfiguration(String ldapServerUrl,
String ldapBaseDn,
String ldapBindDn,
String ldapBindPassword) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.ldap.core.support.LdapContextSource |
ldapContextSource() |
org.springframework.ldap.core.LdapTemplate |
ldapTemplate(org.springframework.ldap.core.support.LdapContextSource ldapContextSource) |
public LdapConfiguration(@Value(value="${taskana.ldap.serverUrl:ldap://localhost:10389}")
String ldapServerUrl,
@Value(value="${taskana.ldap.baseDn:OU=Test,O=TASKANA}")
String ldapBaseDn,
@Value(value="${taskana.ldap.bindDn:uid=admin}")
String ldapBindDn,
@Value(value="${taskana.ldap.bindPassword:secret}")
String ldapBindPassword)
@Bean @ConditionalOnMissingBean(value=org.springframework.ldap.core.support.LdapContextSource.class) public org.springframework.ldap.core.support.LdapContextSource ldapContextSource()
@Bean @ConditionalOnMissingBean(value=org.springframework.ldap.core.LdapTemplate.class) public org.springframework.ldap.core.LdapTemplate ldapTemplate(org.springframework.ldap.core.support.LdapContextSource ldapContextSource)
Copyright © 2020. All rights reserved.