use of org.apereo.cas.adaptors.ldap.services.LdapServiceRegistry in project cas by apereo.
the class LdapServiceRegistryConfiguration method ldapServiceRegistry.
@Bean
@RefreshScope
public ServiceRegistry ldapServiceRegistry() {
final LdapServiceRegistryProperties ldap = casProperties.getServiceRegistry().getLdap();
final ConnectionFactory connectionFactory = LdapUtils.newLdaptivePooledConnectionFactory(ldap);
return new LdapServiceRegistry(connectionFactory, ldap.getBaseDn(), ldapServiceRegistryMapper(), ldap);
}
Aggregations