Blame SOURCES/0013-config-override_space-is-monitor-s-option.patch

b2d430
From 3904a70f86d793954822abc543783d57fb36c8ea Mon Sep 17 00:00:00 2001
b2d430
From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@redhat.com>
b2d430
Date: Mon, 11 Jul 2016 13:11:41 +0200
b2d430
Subject: [PATCH 13/14] config: override_space is monitor's option
b2d430
MIME-Version: 1.0
b2d430
Content-Type: text/plain; charset=UTF-8
b2d430
Content-Transfer-Encoding: 8bit
b2d430
b2d430
We read override_space from [sssd] not
b2d430
[nss] section.
b2d430
b2d430
Resolves:
b2d430
https://fedorahosted.org/sssd/ticket/3068
b2d430
b2d430
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
b2d430
(cherry picked from commit fc04d11c2fdde0bfe280c6030df2b1d6bf15ce63)
b2d430
---
b2d430
 src/config/SSSDConfig/__init__.py.in | 2 +-
b2d430
 src/config/SSSDConfigTest.py         | 3 ++-
b2d430
 src/config/cfg_rules.ini             | 2 +-
b2d430
 src/config/etc/sssd.api.conf         | 2 +-
b2d430
 4 files changed, 5 insertions(+), 4 deletions(-)
b2d430
b2d430
diff --git a/src/config/SSSDConfig/__init__.py.in b/src/config/SSSDConfig/__init__.py.in
b2d430
index 52af1386c7b6fc858b27d6f1d9197a7906519fc1..ebdd049e4df7ac2349293d6ce3802e7349098273 100644
b2d430
--- a/src/config/SSSDConfig/__init__.py.in
b2d430
+++ b/src/config/SSSDConfig/__init__.py.in
b2d430
@@ -63,6 +63,7 @@ option_strings = {
b2d430
     'default_domain_suffix' : _('Domain to add to names without a domain component.'),
b2d430
     'user' : _('The user to drop privileges to'),
b2d430
     'certificate_verification' : _('Tune certificate verification'),
b2d430
+    'override_space': _('All spaces in group or user names will be replaced with this character'),
b2d430
 
b2d430
     # [nss]
b2d430
     'enum_cache_timeout' : _('Enumeration cache timeout length (seconds)'),
b2d430
@@ -81,7 +82,6 @@ option_strings = {
b2d430
     'shell_fallback' : _('If a shell stored in central directory is allowed but not available, use this fallback'),
b2d430
     'default_shell': _('Shell to use if the provider does not list one'),
b2d430
     'memcache_timeout': _('How long will be in-memory cache records valid'),
b2d430
-    'override_space': _('All spaces in group or user names will be replaced with this character'),
b2d430
 
b2d430
     # [pam]
b2d430
     'offline_credentials_expiration' : _('How long to allow cached logins between online logins (days)'),
b2d430
diff --git a/src/config/SSSDConfigTest.py b/src/config/SSSDConfigTest.py
b2d430
index 6ec30234e24b7b48ccab6a98e1f9396990509190..5fa9bce8e6502c0ebf42671058c5e3d5de00ea0d 100755
b2d430
--- a/src/config/SSSDConfigTest.py
b2d430
+++ b/src/config/SSSDConfigTest.py
b2d430
@@ -310,7 +310,8 @@ class SSSDConfigTestSSSDService(unittest.TestCase):
b2d430
             'client_idle_timeout',
b2d430
             'diag_cmd',
b2d430
             'description',
b2d430
-            'certificate_verification']
b2d430
+            'certificate_verification',
b2d430
+            'override_space']
b2d430
 
b2d430
         self.assertTrue(type(options) == dict,
b2d430
                         "Options should be a dictionary")
b2d430
diff --git a/src/config/cfg_rules.ini b/src/config/cfg_rules.ini
b2d430
index d738ddf5ac5c220dbf2c3c99782368c684072e3f..ae4a9af2cdfd622e1234e26ae7285ff4e47889dc 100644
b2d430
--- a/src/config/cfg_rules.ini
b2d430
+++ b/src/config/cfg_rules.ini
b2d430
@@ -38,6 +38,7 @@ option = krb5_rcache_dir
b2d430
 option = user
b2d430
 option = default_domain_suffix
b2d430
 option = certificate_verification
b2d430
+option = override_space
b2d430
 
b2d430
 [rule/allowed_nss_options]
b2d430
 validator = ini_allowed_options
b2d430
@@ -75,7 +76,6 @@ option = shell_fallback
b2d430
 option = default_shell
b2d430
 option = get_domains_timeout
b2d430
 option = memcache_timeout
b2d430
-option = override_space
b2d430
 
b2d430
 [rule/allowed_pam_options]
b2d430
 validator = ini_allowed_options
b2d430
diff --git a/src/config/etc/sssd.api.conf b/src/config/etc/sssd.api.conf
b2d430
index 91146593d7fcda2930ff85e8ee3e889cc12af962..df6bdeb392b33a1437d790027054ee5e7b33e724 100644
b2d430
--- a/src/config/etc/sssd.api.conf
b2d430
+++ b/src/config/etc/sssd.api.conf
b2d430
@@ -28,6 +28,7 @@ krb5_rcache_dir = str, None, false
b2d430
 user = str, None, false
b2d430
 default_domain_suffix = str, None, false
b2d430
 certificate_verification = str, None, false
b2d430
+override_space = str, None, false
b2d430
 
b2d430
 [nss]
b2d430
 # Name service
b2d430
@@ -49,7 +50,6 @@ shell_fallback = str, None, false
b2d430
 default_shell = str, None, false
b2d430
 get_domains_timeout = int, None, false
b2d430
 memcache_timeout = int, None, false
b2d430
-override_space = str, None, false
b2d430
 
b2d430
 [pam]
b2d430
 # Authentication service
b2d430
-- 
b2d430
2.4.11
b2d430