public AuthToLocalBuilder addRules(String authToLocalRules) {
    if (!StringUtils.isEmpty(authToLocalRules)) {
      String[] rules = authToLocalRules.split("RULE:|DEFAULT");
      for (String r : rules) {
        r = r.trim();
        if (!r.isEmpty()) {
          Rule rule = createRule(r);
          if (!setRules.contains(rule.caseSensitivityInverted())) {
            setRules.add(rule);
          }
        }
      }
    }
    return this;
  }
Add existing rules from the given authToLocal configuration property.
The rules are added verbatim.

@param authToLocalRules config property value containing the existing rules
ambari-server/src/main/java/org/apache/ambari/server/controller/AuthToLocalBuilder.java