summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichal Židek <mzidek@redhat.com>2016-07-11 13:34:03 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-07-12 18:51:14 +0200
commitaeab20358006d728a284f969f92f3890498cd651 (patch)
tree0cb9411b1f72bc1f0865faa29ca233fd528de61a
parent1b9b5477027d86a2afb2e72981253d108c5398da (diff)
downloadsssd-aeab20358006d728a284f969f92f3890498cd651.zip
sssd-aeab20358006d728a284f969f92f3890498cd651.tar.gz
sssd-aeab20358006d728a284f969f92f3890498cd651.tar.xz
config: Add config_file_version to schema
Resolves: https://fedorahosted.org/sssd/ticket/3068 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
-rwxr-xr-xsrc/config/SSSDConfigTest.py1
-rw-r--r--src/config/cfg_rules.ini1
-rw-r--r--src/config/etc/sssd.api.conf1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/config/SSSDConfigTest.py b/src/config/SSSDConfigTest.py
index 5fa9bce..332d870 100755
--- a/src/config/SSSDConfigTest.py
+++ b/src/config/SSSDConfigTest.py
@@ -289,6 +289,7 @@ class SSSDConfigTestSSSDService(unittest.TestCase):
options = service.list_options()
control_list = [
+ 'config_file_version',
'services',
'domains',
'timeout',
diff --git a/src/config/cfg_rules.ini b/src/config/cfg_rules.ini
index 5c8d05a..635c078 100644
--- a/src/config/cfg_rules.ini
+++ b/src/config/cfg_rules.ini
@@ -39,6 +39,7 @@ option = user
option = default_domain_suffix
option = certificate_verification
option = override_space
+option = config_file_version
[rule/allowed_nss_options]
validator = ini_allowed_options
diff --git a/src/config/etc/sssd.api.conf b/src/config/etc/sssd.api.conf
index e4011a3..737f0e1 100644
--- a/src/config/etc/sssd.api.conf
+++ b/src/config/etc/sssd.api.conf
@@ -19,6 +19,7 @@ diag_cmd = str, None, false
[sssd]
# Monitor service
+config_file_version = int, None, false
services = list, str, true, nss, pam
domains = list, str, true
sbus_timeout = int, None, false