From: Jeremy Allison Date: Tue, 29 Jul 2014 21:53:11 +0000 (-0700) Subject: s3: winbindd: Add new parameter "winbind request timeout" set to 60 seconds with... X-Git-Tag: samba-4.0.22~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36f55df047e58e79b22ff46fcfcf2758ab58e9b6;p=thirdparty%2Fsamba.git s3: winbindd: Add new parameter "winbind request timeout" set to 60 seconds with man page. "This parameter specifies the number of seconds the winbindd daemon will wait before disconnecting either a client connection with no outstanding requests (idle) or a client connection with a request that has remained outstanding (hung) for longer than this number of seconds." Bug 3204 winbindd: Exceeding 200 client connections, no idle connection found https://bugzilla.samba.org/show_bug.cgi?id=3204 Signed-off-by: Jeremy Allison Reviewed-by: Ira Cooper --- diff --git a/docs-xml/smbdotconf/winbind/winbindrequesttimeout.xml b/docs-xml/smbdotconf/winbind/winbindrequesttimeout.xml new file mode 100644 index 00000000000..322087161d2 --- /dev/null +++ b/docs-xml/smbdotconf/winbind/winbindrequesttimeout.xml @@ -0,0 +1,16 @@ + + + This parameter specifies the number of + seconds the winbindd + 8 daemon will wait before + disconnecting either a client connection with no outstanding + requests (idle) or a client connection with a request that has + remained outstanding (hung) for longer than this number of seconds. + + +60 + diff --git a/lib/param/param_functions.c b/lib/param/param_functions.c index 35e199fa012..41b44b61b89 100644 --- a/lib/param/param_functions.c +++ b/lib/param/param_functions.c @@ -344,6 +344,7 @@ FN_GLOBAL_INTEGER(winbind_cache_time, winbind_cache_time) FN_GLOBAL_INTEGER(winbind_expand_groups, winbind_expand_groups) FN_GLOBAL_INTEGER(winbind_max_clients, winbind_max_clients) FN_GLOBAL_INTEGER(winbind_reconnect_delay, winbind_reconnect_delay) +FN_GLOBAL_INTEGER(winbind_request_timeout, winbind_request_timeout) FN_GLOBAL_LIST(auth_methods, AuthMethods) FN_GLOBAL_LIST(cluster_addresses, szClusterAddresses) FN_GLOBAL_LIST(dcerpc_endpoint_servers, dcerpc_ep_servers) diff --git a/lib/param/param_table.c b/lib/param/param_table.c index 5b78eae2fc3..0916023d101 100644 --- a/lib/param/param_table.c +++ b/lib/param/param_table.c @@ -4033,6 +4033,15 @@ static struct parm_struct parm_table[] = { .enum_list = NULL, .flags = FLAG_ADVANCED, }, + { + .label = "winbind request timeout", + .type = P_INTEGER, + .p_class = P_GLOBAL, + .offset = GLOBAL_VAR(winbind_request_timeout), + .special = NULL, + .enum_list = NULL, + .flags = FLAG_ADVANCED, + }, { .label = "winbind max clients", .type = P_INTEGER, diff --git a/source3/include/proto.h b/source3/include/proto.h index 0276244a425..a8352530eba 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -1352,6 +1352,7 @@ int lp_smb_encrypt(int ); char lp_magicchar(const struct share_params *p ); int lp_winbind_cache_time(void); int lp_winbind_reconnect_delay(void); +int lp_winbind_request_timeout(void); int lp_winbind_max_clients(void); const char **lp_winbind_nss_info(void); int lp_algorithmic_rid_base(void); diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 2857765d43e..d3d18f4c86a 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -977,6 +977,7 @@ static void init_globals(bool reinit_globals) Globals.winbind_cache_time = 300; /* 5 minutes */ Globals.winbind_reconnect_delay = 30; /* 30 seconds */ + Globals.winbind_request_timeout = 60; /* 60 seconds */ Globals.winbind_max_clients = 200; Globals.bWinbindEnumUsers = false; Globals.bWinbindEnumGroups = false;