@Override
    protected FilterTemplate finalizeQueryBuilder(final FilterTemplate filterTemplate, final Map<String, List<Object>> query) {
        if (filterTemplate.getParameters().isEmpty()) {
            val username = getUsernameAttributeProvider().getUsernameFromQuery(query);
            if (searchFilter.contains("{0}")) {
                LOGGER.debug("Filter template has not assigned any parameters. Using [{}] to populate the placeholder by index.", username);
                filterTemplate.setParameter(0, username);
            }
            if (this.searchFilter.contains("{user}")) {
                LOGGER.debug("Filter template has not assigned any parameters. Using [{}] to populate the placeholder variable.", username);
                filterTemplate.setParameter("user", username);
            }
        }
        return filterTemplate;
    }
Person directory {@link org.apereo.cas.authentication.principal.attribute.PersonAttributeDao}
implementation that queries an LDAP directory
with ldaptive components to populate person attributes.

@author Marvin S. Addison
@since 7.1.0
support/cas-server-support-ldap-core/src/main/java/org/apereo/cas/persondir/LdapPersonAttributeDao.java