protected Set<LdapUserDto> getLdapUsers(String username) {
    LdapServerProperties ldapServerProperties = getLdapProperties();
    Filter userObjectFilter = new EqualsFilter(OBJECT_CLASS_ATTRIBUTE, ldapServerProperties.getUserObjectClass());
    Filter userNameFilter = new LikeFilter(ldapServerProperties.getUsernameAttribute(), username);
    return getFilteredLdapUsers(ldapServerProperties.getBaseDN(), userObjectFilter, userNameFilter);
  }
Get the set of LDAP users for the given user name.

@param username the user name
@return the set of LDAP users for the given name
ambari-server/src/main/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulator.java