public static AmbariServerConfigurationKey translate(AmbariServerConfigurationCategory category, String keyName) {
    if (category != null && StringUtils.isNotEmpty(keyName)) {
      for (AmbariServerConfigurationKey key : values()) {
        if (key.configurationCategory.equals(category)) {
          if ((key.regex && keyName.matches(key.propertyName)) || key.propertyName.equals(keyName)) {
            return key;
          }
        }
      }
    }

    String categoryName = (category == null) ? "null" : category.getCategoryName();
    LOG.warn("Invalid Ambari server configuration key: {}:{}", categoryName, keyName);
    return null;
  }
Constants representing supported LDAP related property names
ambari-server/src/main/java/org/apache/ambari/server/configuration/AmbariServerConfigurationKey.java