From 7cb6a9f70dd65c88e0f9be97c79702566ab37afb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
Date: Mon, 8 Jul 2019 11:35:28 +0200
Subject: [PATCH] config: add dns_resolver_op_timeout to option list
Resolves:
https://pagure.io/SSSD/sssd/issue/4176
This is backport of commit 049f3906b9 into 1-16 branch
Reviewed-by: Sumit Bose <sbose@redhat.com>
---
src/config/SSSDConfig/__init__.py.in | 1 +
src/config/SSSDConfigTest.py | 2 ++
src/config/cfg_rules.ini | 1 +
src/config/etc/sssd.api.conf | 1 +
4 files changed, 5 insertions(+)
diff --git a/src/config/SSSDConfig/__init__.py.in b/src/config/SSSDConfig/__init__.py.in
index 703dee0a5..f3c6cfebf 100644
--- a/src/config/SSSDConfig/__init__.py.in
+++ b/src/config/SSSDConfig/__init__.py.in
@@ -170,6 +170,7 @@ option_strings = {
'entry_cache_timeout' : _('Entry cache timeout length (seconds)'),
'lookup_family_order' : _('Restrict or prefer a specific address family when performing DNS lookups'),
'account_cache_expiration' : _('How long to keep cached entries after last successful login (days)'),
+ 'dns_resolver_op_timeout' : _('How long should keep trying to resolve single DNS query (seconds)'),
'dns_resolver_timeout' : _('How long to wait for replies from DNS when resolving servers (seconds)'),
'dns_discovery_domain' : _('The domain part of service discovery DNS query'),
'override_gid' : _('Override GID value from the identity provider with this value'),
diff --git a/src/config/SSSDConfigTest.py b/src/config/SSSDConfigTest.py
index 8c6533358..863304424 100755
--- a/src/config/SSSDConfigTest.py
+++ b/src/config/SSSDConfigTest.py
@@ -607,6 +607,7 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase):
'refresh_expired_interval',
'lookup_family_order',
'account_cache_expiration',
+ 'dns_resolver_op_timeout',
'dns_resolver_timeout',
'dns_discovery_domain',
'dyndns_update',
@@ -978,6 +979,7 @@ class SSSDConfigTestSSSDDomain(unittest.TestCase):
'refresh_expired_interval',
'account_cache_expiration',
'lookup_family_order',
+ 'dns_resolver_op_timeout',
'dns_resolver_timeout',
'dns_discovery_domain',
'dyndns_update',
diff --git a/src/config/cfg_rules.ini b/src/config/cfg_rules.ini
index bab9b4541..228c8841e 100644
--- a/src/config/cfg_rules.ini
+++ b/src/config/cfg_rules.ini
@@ -365,6 +365,7 @@ option = account_cache_expiration
option = pwd_expiration_warning
option = filter_users
option = filter_groups
+option = dns_resolver_op_timeout
option = dns_resolver_timeout
option = dns_discovery_domain
option = override_gid
diff --git a/src/config/etc/sssd.api.conf b/src/config/etc/sssd.api.conf
index 715614208..a10e74889 100644
--- a/src/config/etc/sssd.api.conf
+++ b/src/config/etc/sssd.api.conf
@@ -169,6 +169,7 @@ account_cache_expiration = int, None, false
pwd_expiration_warning = int, None, false
filter_users = list, str, false
filter_groups = list, str, false
+dns_resolver_op_timeout = int, None, false
dns_resolver_timeout = int, None, false
dns_discovery_domain = str, None, false
override_gid = int, None, false
--
2.21.1