Blame SOURCES/0011-config-add-dns_resolver_op_timeout-to-option-list.patch

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