use of org.apereo.cas.authentication.surrogate.SurrogateLdapAuthenticationService in project cas by apereo.
the class SurrogateLdapAuthenticationConfiguration method surrogateAuthenticationService.
@RefreshScope
@Bean
public SurrogateAuthenticationService surrogateAuthenticationService() {
final SurrogateAuthenticationProperties su = casProperties.getAuthn().getSurrogate();
LOGGER.debug("Using LDAP [{}] with baseDn [{}] to locate surrogate accounts", su.getLdap().getLdapUrl(), su.getLdap().getBaseDn());
final ConnectionFactory factory = LdapUtils.newLdaptivePooledConnectionFactory(su.getLdap());
return new SurrogateLdapAuthenticationService(factory, su.getLdap(), servicesManager);
}
Aggregations