mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
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 <jra@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
This commit is contained in:
parent
6d104182d9
commit
2535803627
16
docs-xml/smbdotconf/winbind/winbindrequesttimeout.xml
Normal file
16
docs-xml/smbdotconf/winbind/winbindrequesttimeout.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<samba:parameter name="winbind request timeout"
|
||||
context="G"
|
||||
type="integer"
|
||||
advanced="1" developer="1"
|
||||
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
|
||||
<description>
|
||||
<para>This parameter specifies the number of
|
||||
seconds the <citerefentry><refentrytitle>winbindd</refentrytitle>
|
||||
<manvolnum>8</manvolnum></citerefentry> 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.</para>
|
||||
</description>
|
||||
|
||||
<value type="default">60</value>
|
||||
</samba:parameter>
|
@ -2509,6 +2509,8 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
|
||||
|
||||
lpcfg_do_global_parameter(lp_ctx, "winbind reconnect delay", "30");
|
||||
|
||||
lpcfg_do_global_parameter(lp_ctx, "winbind request timeout", "60");
|
||||
|
||||
lpcfg_do_global_parameter(lp_ctx, "nt acl support", "yes");
|
||||
|
||||
lpcfg_do_global_parameter(lp_ctx, "acl check permissions", "yes");
|
||||
|
@ -4037,6 +4037,15 @@ 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,
|
||||
|
@ -913,6 +913,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.winbind_enum_users = false;
|
||||
Globals.winbind_enum_groups = false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user