private SearchResponse searchForId(final String id) {
        return FunctionUtils.doUnchecked(() -> {
            val gua = casProperties.getAuthn().getGua();
            val filter = LdapUtils.newLdaptiveSearchFilter(gua.getLdap().getSearchFilter(),
                LdapUtils.LDAP_SEARCH_FILTER_DEFAULT_PARAM_NAME,
                CollectionUtils.wrap(id));
            return connectionFactory.executeSearchOperation(
                gua.getLdap().getBaseDn(),
                filter,
                gua.getLdap().getPageSize(),
                new String[]{gua.getLdap().getImageAttribute()},
                ReturnAttributes.ALL_USER.value());
        });
    }
This is {@link LdapUserGraphicalAuthenticationRepository}.

@author Misagh Moayyed
@since 5.1.0
support/cas-server-support-gua/src/main/java/org/apereo/cas/gua/impl/LdapUserGraphicalAuthenticationRepository.java