use of org.springframework.security.ldap.DefaultSpringSecurityContextSource in project dhis2-core by dhis2.
the class AuthenticationProviderConfig method defaultSpringSecurityContextSource.
@Bean
public DefaultSpringSecurityContextSource defaultSpringSecurityContextSource() {
DefaultSpringSecurityContextSource defaultSpringSecurityContextSource = new DefaultSpringSecurityContextSource(configurationProvider.getProperty(ConfigurationKey.LDAP_URL));
defaultSpringSecurityContextSource.setUserDn(configurationProvider.getProperty(ConfigurationKey.LDAP_MANAGER_DN));
defaultSpringSecurityContextSource.setPassword(configurationProvider.getProperty(ConfigurationKey.LDAP_MANAGER_PASSWORD));
return defaultSpringSecurityContextSource;
}
Aggregations