public synchronized void setGroupLdap(String groupName) throws AmbariException {
    GroupEntity groupEntity = groupDAO.findGroupByName(groupName);
    if (groupEntity != null) {
      groupEntity.setGroupType(GroupType.LDAP);
      groupDAO.merge(groupEntity);
    } else {
      throw new AmbariException("Group " + groupName + " doesn't exist");
    }
  }
Converts group to LDAP group.

@param groupName group name
@throws AmbariException if group does not exist
ambari-server/src/main/java/org/apache/ambari/server/security/authorization/Users.java