protected Set<LdapGroupDto> getLdapGroups(String groupName) {
    LdapServerProperties ldapServerProperties = getLdapProperties();
    Filter groupObjectFilter = new EqualsFilter(OBJECT_CLASS_ATTRIBUTE,
        ldapServerProperties.getGroupObjectClass());
    Filter groupNameFilter = new LikeFilter(ldapServerProperties.getGroupNamingAttr(), groupName);
    return getFilteredLdapGroups(ldapServerProperties.getBaseDN(), groupObjectFilter, groupNameFilter);
  }
Get the set of LDAP groups for the given group name.

@param groupName the group name
@return the set of LDAP groups for the given name
ambari-server/src/main/java/org/apache/ambari/server/security/ldap/AmbariLdapDataPopulator.java