private Filter getMemberFilter(String memberAttributeValue) {
    LdapServerProperties ldapServerProperties = getLdapProperties();
    String dnAttribute = ldapServerProperties.getDnAttribute();

    return new OrFilter().or(new EqualsFilter(dnAttribute, memberAttributeValue)).
        or(new EqualsFilter(UID_ATTRIBUTE, memberAttributeValue));
  }
Retrieves groups from external LDAP server.

@return set of info about LDAP groups
ambari-server/src/main/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulator.java