dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0150-VALIDATOR-prevent-duplicite-report-from-subdomain-se.patch

ecf709
From 03bfcf1746b163fa3fbce9f2741db77064ac84e7 Mon Sep 17 00:00:00 2001
ecf709
From: Lukas Slebodnik <lslebodn@redhat.com>
ecf709
Date: Wed, 31 May 2017 17:35:27 +0200
ecf709
Subject: [PATCH 150/152] VALIDATOR: prevent duplicite report from subdomain
ecf709
 sections
ecf709
MIME-Version: 1.0
ecf709
Content-Type: text/plain; charset=UTF-8
ecf709
Content-Transfer-Encoding: 8bit
ecf709
ecf709
Issues is subdomain sections e.g. "[domain/A.test/B.A.test]" were
ecf709
reported twice.
ecf709
ecf709
[rule/allowed_domain_options]: Attribute 'debug_leTYPOvel' is not allowed in section 'domain/A.test/B.A.test'. Check for typos.
ecf709
[rule/allowed_subdomain_options]: Attribute 'debug_leTYPOvel' is not allowed in section 'domain/A.test/B.A.test'. Check for typos.
ecf709
ecf709
Reviewed-by: Michal Židek <mzidek@redhat.com>
ecf709
---
ecf709
 src/config/cfg_rules.ini | 2 +-
ecf709
 1 file changed, 1 insertion(+), 1 deletion(-)
ecf709
ecf709
diff --git a/src/config/cfg_rules.ini b/src/config/cfg_rules.ini
ecf709
index 744446478e5d5489cd86d8e15ce8e178cf5e3a91..d6506b7c3cee13f7c5400a546deb787e755abc8b 100644
ecf709
--- a/src/config/cfg_rules.ini
ecf709
+++ b/src/config/cfg_rules.ini
ecf709
@@ -296,7 +296,7 @@ option = responder_idle_timeout
ecf709
 
ecf709
 [rule/allowed_domain_options]
ecf709
 validator = ini_allowed_options
ecf709
-section_re = ^\(domain\|application\)/.*$
ecf709
+section_re = ^\(domain\|application\)/[^/]\+$
ecf709
 
ecf709
 option = debug
ecf709
 option = debug_level
ecf709
-- 
ecf709
2.9.4
ecf709