@Override
    public List<DelegatedAuthenticationCandidateProfile> resolve(final RequestContext context, final ClientCredential credentials) {
        val profile = resolveUserProfile(context, credentials).orElseThrow();
        val ldapServers = configContext.getCasProperties().getAuthn().getPac4j().getProfileSelection().getLdap();
        return ldapServers
            .stream()
            .map(Unchecked.function(props -> queryLdap(props, profile)))
            .flatMap(List::stream)
            .collect(Collectors.toList());
    }
This is {@link LdapDelegatedClientAuthenticationCredentialResolver}.

@author Misagh Moayyed
@since 7.0.0
support/cas-server-support-pac4j-core/src/main/java/org/apereo/cas/authentication/principal/ldap/LdapDelegatedClientAuthenticationCredentialResolver.java