From cd4cc8d8829f1ea5257bf874b91980368114275f Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Tue, 22 Oct 2013 14:07:49 +0200 Subject: dp: make subdomains refresh interval configurable This patch makes the refresh of available subdomains configurable. New option: subdomain_refresh_interval (undocumented) Resolves: https://fedorahosted.org/sssd/ticket/1968 --- src/config/SSSDConfig/__init__.py.in | 1 + src/config/SSSDConfigTest.py | 6 ++++-- src/config/etc/sssd.api.conf | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/config') diff --git a/src/config/SSSDConfig/__init__.py.in b/src/config/SSSDConfig/__init__.py.in index f073419e9..af5903c65 100644 --- a/src/config/SSSDConfig/__init__.py.in +++ b/src/config/SSSDConfig/__init__.py.in @@ -134,6 +134,7 @@ option_strings = { 'dyndns_force_tcp' : _("Whether the nsupdate utility should default to using TCP"), 'dyndns_auth' : _("What kind of authentication should be used to perform the DNS update"), 'subdomain_enumerate' : _('Control enumeration of trusted domains'), + 'subdomain_refresh_interval' : _('How often should subdomains list be refreshed'), # [provider/ipa] 'ipa_domain' : _('IPA domain'), diff --git a/src/config/SSSDConfigTest.py b/src/config/SSSDConfigTest.py index acec3e6f4..b6c1d74aa 100755 --- a/src/config/SSSDConfigTest.py +++ b/src/config/SSSDConfigTest.py @@ -533,7 +533,8 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase): 'session_provider', 'hostid_provider', 'subdomains_provider', - 'realmd_tags'] + 'realmd_tags', + 'subdomain_refresh_interval'] self.assertTrue(type(options) == dict, "Options should be a dictionary") @@ -888,7 +889,8 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase): 'session_provider', 'hostid_provider', 'subdomains_provider', - 'realmd_tags'] + 'realmd_tags', + 'subdomain_refresh_interval'] self.assertTrue(type(options) == dict, "Options should be a dictionary") diff --git a/src/config/etc/sssd.api.conf b/src/config/etc/sssd.api.conf index 4b8e97ba1..ed65d2d78 100644 --- a/src/config/etc/sssd.api.conf +++ b/src/config/etc/sssd.api.conf @@ -116,6 +116,7 @@ override_shell = str, None, false default_shell = str, None, false description = str, None, false realmd_tags = str, None, false +subdomain_refresh_interval = int, None, false #Entry cache timeouts entry_cache_user_timeout = int, None, false -- cgit