dpward / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone

Blame SOURCES/0017-config-Allow-timeout-for-all-sevices.patch

b2d430
From 18b2f16e2b086509cafb453943387fff2d1b0d19 Mon Sep 17 00:00:00 2001
b2d430
From: =?UTF-8?q?Michal=20=C5=BDidek?= <mzidek@redhat.com>
b2d430
Date: Mon, 11 Jul 2016 13:03:28 +0200
b2d430
Subject: [PATCH 17/18] config: Allow timeout for all sevices
b2d430
MIME-Version: 1.0
b2d430
Content-Type: text/plain; charset=UTF-8
b2d430
Content-Transfer-Encoding: 8bit
b2d430
b2d430
Allow option "timeout" for all sevices.
b2d430
Also remove unused macro CONFDB_SERVICE_TIMEOUT.
b2d430
b2d430
Resolves:
b2d430
https://fedorahosted.org/sssd/ticket/3068
b2d430
b2d430
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
b2d430
(cherry picked from commit 1b9b5477027d86a2afb2e72981253d108c5398da)
b2d430
---
b2d430
 src/confdb/confdb.h          | 1 -
b2d430
 src/config/cfg_rules.ini     | 7 +++++++
b2d430
 src/config/etc/sssd.api.conf | 2 +-
b2d430
 3 files changed, 8 insertions(+), 2 deletions(-)
b2d430
b2d430
diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h
b2d430
index 54b1cbc82546a76013c35c6cd3b1924663e9bb23..cc8f66f02eb5ac10ced826326f80bbf5eda82ee1 100644
b2d430
--- a/src/confdb/confdb.h
b2d430
+++ b/src/confdb/confdb.h
b2d430
@@ -58,7 +58,6 @@
b2d430
 #define CONFDB_SERVICE_DEBUG_TIMESTAMPS "debug_timestamps"
b2d430
 #define CONFDB_SERVICE_DEBUG_MICROSECONDS "debug_microseconds"
b2d430
 #define CONFDB_SERVICE_DEBUG_TO_FILES "debug_to_files"
b2d430
-#define CONFDB_SERVICE_TIMEOUT "timeout"
b2d430
 #define CONFDB_SERVICE_FORCE_TIMEOUT "force_timeout"
b2d430
 #define CONFDB_SERVICE_RECON_RETRIES "reconnection_retries"
b2d430
 #define CONFDB_SERVICE_FD_LIMIT "fd_limit"
b2d430
diff --git a/src/config/cfg_rules.ini b/src/config/cfg_rules.ini
b2d430
index 85a15be3493cf4b8c5a612b0f66ae4c86d39b1ab..5c8d05a817331dd23fd7e349719bd4b44a5bdd02 100644
b2d430
--- a/src/config/cfg_rules.ini
b2d430
+++ b/src/config/cfg_rules.ini
b2d430
@@ -44,6 +44,7 @@ option = override_space
b2d430
 validator = ini_allowed_options
b2d430
 section_re = ^nss$
b2d430
 
b2d430
+option = timeout
b2d430
 option = debug
b2d430
 option = debug_level
b2d430
 option = debug_timestamps
b2d430
@@ -82,6 +83,7 @@ option = memcache_timeout
b2d430
 validator = ini_allowed_options
b2d430
 section_re = ^pam$
b2d430
 
b2d430
+option = timeout
b2d430
 option = debug
b2d430
 option = debug_level
b2d430
 option = debug_timestamps
b2d430
@@ -115,6 +117,7 @@ option = p11_child_timeout
b2d430
 validator = ini_allowed_options
b2d430
 section_re = ^sudo$
b2d430
 
b2d430
+option = timeout
b2d430
 option = debug
b2d430
 option = debug_level
b2d430
 option = debug_timestamps
b2d430
@@ -136,6 +139,7 @@ option = sudo_inverse_order
b2d430
 validator = ini_allowed_options
b2d430
 section_re = ^autofs$
b2d430
 
b2d430
+option = timeout
b2d430
 option = debug
b2d430
 option = debug_level
b2d430
 option = debug_timestamps
b2d430
@@ -156,6 +160,7 @@ option = autofs_negative_timeout
b2d430
 validator = ini_allowed_options
b2d430
 section_re = ^ssh$
b2d430
 
b2d430
+option = timeout
b2d430
 option = debug
b2d430
 option = debug_level
b2d430
 option = debug_timestamps
b2d430
@@ -178,6 +183,7 @@ option = ca_db
b2d430
 validator = ini_allowed_options
b2d430
 section_re = ^pac$
b2d430
 
b2d430
+option = timeout
b2d430
 option = debug
b2d430
 option = debug_level
b2d430
 option = debug_timestamps
b2d430
@@ -199,6 +205,7 @@ option = pac_lifetime
b2d430
 validator = ini_allowed_options
b2d430
 section_re = ^ifp$
b2d430
 
b2d430
+option = timeout
b2d430
 option = debug
b2d430
 option = debug_level
b2d430
 option = debug_timestamps
b2d430
diff --git a/src/config/etc/sssd.api.conf b/src/config/etc/sssd.api.conf
b2d430
index 2d7c5049f5e5bf9df6e5445ee6e5c62211bf1c45..e4011a384cdb3fb3bce93494cbb278ec2622ee40 100644
b2d430
--- a/src/config/etc/sssd.api.conf
b2d430
+++ b/src/config/etc/sssd.api.conf
b2d430
@@ -3,6 +3,7 @@
b2d430
 
b2d430
 [service]
b2d430
 # Options available to all services
b2d430
+timeout = int, None, false
b2d430
 debug = int, None, false
b2d430
 debug_level = int, None, false
b2d430
 debug_timestamps = bool, None, false
b2d430
@@ -20,7 +21,6 @@ diag_cmd = str, None, false
b2d430
 # Monitor service
b2d430
 services = list, str, true, nss, pam
b2d430
 domains = list, str, true
b2d430
-timeout = int, None, false
b2d430
 sbus_timeout = int, None, false
b2d430
 re_expression = str, None, false
b2d430
 full_name_format = str, None, false
b2d430
-- 
b2d430
2.4.11
b2d430