private Collection<LdapEntry> locateLdapEntriesForAll() {
        return FunctionUtils.doUnchecked(() -> {
            val att = ldapProperties.getAccountAttributeName();
            val filter = LdapUtils.newLdaptiveSearchFilter('(' + att + "=*)");
            LOGGER.debug("Locating LDAP entries via filter [{}] based on attribute [{}]", filter, att);
            val response = connectionFactory.executeSearchOperation(
                ldapProperties.getBaseDn(), filter, ldapProperties.getPageSize(), att);
            if (LdapUtils.containsResultEntry(response)) {
                val results = response.getEntries();
                LOGGER.debug("Locating [{}] LDAP entries based on response [{}]", results.size(), response);
                return results;
            }
            LOGGER.debug("Unable to read entries from LDAP via filter [{}]", filter);
            return new HashSet<>();
        });
    }
This is {@link LdapGoogleAuthenticatorTokenCredentialRepository}.

@author Misagh Moayyed
@since 6.2.0
support/cas-server-support-gauth-ldap/src/main/java/org/apereo/cas/gauth/credential/LdapGoogleAuthenticatorTokenCredentialRepository.java