From 86d4b1c0163f84c53e07b5dfc40ad131db2f4ba2 Mon Sep 17 00:00:00 2001 From: Alexander Bokovoy Date: Nov 19 2018 08:45:55 +0000 Subject: ipa-kdb: reduce LDAP operations timeout to 30 seconds Since LDAP operations used by ipa-kdb driver are synchronous, the timeout specified here is blocking entire KDC. It is worth reducing the timeout and since AS REQ processing timeout in KDC is 1 minute, reducing the timeout for LDAP operations down to 30 seconds allows KDC to respond promptly in worst case scenario as well. Fixes: https://pagure.io/freeipa/issue/7217 Reviewed-By: Christian Heimes Reviewed-By: Robbie Harwood --- diff --git a/daemons/ipa-kdb/ipa_kdb_common.c b/daemons/ipa-kdb/ipa_kdb_common.c index e2592ce..d86f4f5 100644 --- a/daemons/ipa-kdb/ipa_kdb_common.c +++ b/daemons/ipa-kdb/ipa_kdb_common.c @@ -23,7 +23,7 @@ #include "ipa_kdb.h" #include -static struct timeval std_timeout = {300, 0}; +static struct timeval std_timeout = {30, 0}; char *ipadb_filter_escape(const char *input, bool star) {