summaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2013-10-22 14:07:49 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-10-25 22:18:54 +0200
commit4bee540a09cc9ac986ad6655c3b1fe079189fa0d (patch)
tree876edeb37dc366b1cd234d5ad44e902112ce525f /src/config
parent5e9833aa7b1a89cbb2c0cf667a99cb0bc4ad7963 (diff)
downloadsssd-4bee540a09cc9ac986ad6655c3b1fe079189fa0d.tar.gz
sssd-4bee540a09cc9ac986ad6655c3b1fe079189fa0d.tar.xz
sssd-4bee540a09cc9ac986ad6655c3b1fe079189fa0d.zip
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
Diffstat (limited to 'src/config')
-rw-r--r--src/config/SSSDConfig/__init__.py.in1
-rwxr-xr-xsrc/config/SSSDConfigTest.py6
-rw-r--r--src/config/etc/sssd.api.conf1
3 files changed, 6 insertions, 2 deletions
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