From 6e3f6639b9355ae48b8accb3c7730320c793df3d Mon Sep 17 00:00:00 2001 From: Nadezhda Ivanova Date: Mon, 15 Mar 2021 16:04:28 +0200 Subject: [PATCH] ITS#9502 Implement tcp-user-timeout support for back-ldap/(async)meta --- doc/man/man5/slapd-asyncmeta.5 | 8 ++++++++ doc/man/man5/slapd-config.5 | 8 ++++++++ doc/man/man5/slapd-ldap.5 | 8 ++++++++ doc/man/man5/slapd-meta.5 | 8 ++++++++ doc/man/man5/slapd.conf.5 | 8 ++++++++ servers/slapd/back-asyncmeta/config.c | 23 +++++++++++++++++++++++ servers/slapd/back-asyncmeta/conn.c | 5 +++++ servers/slapd/back-ldap/bind.c | 5 +++++ servers/slapd/back-ldap/config.c | 23 ++++++++++++++++++++++- servers/slapd/back-meta/config.c | 24 ++++++++++++++++++++++++ servers/slapd/back-meta/conn.c | 7 +++++++ servers/slapd/config.c | 5 +++-- servers/slapd/slap.h | 1 + 13 files changed, 130 insertions(+), 3 deletions(-) diff --git a/doc/man/man5/slapd-asyncmeta.5 b/doc/man/man5/slapd-asyncmeta.5 index caadcb94f9..dc6924c5d9 100644 --- a/doc/man/man5/slapd-asyncmeta.5 +++ b/doc/man/man5/slapd-asyncmeta.5 @@ -366,6 +366,14 @@ the .B keepalive parameter is ignored otherwise, and system-wide settings are used. +.TP +.B tcp\-user\-timeout +If non-zero, corresponds to the +.B TCP_USER_TIMEOUT +set on the target connections, overriding the operating system setting. +Only some systems support the customization of this parameter, it is +ignored otherwise and system-wide settings are used. + .TP .B map "{attribute|objectclass} [|*] {|*}" This maps object classes and attributes as in the LDAP backend. diff --git a/doc/man/man5/slapd-config.5 b/doc/man/man5/slapd-config.5 index a559b0c1cd..6310539d1a 100644 --- a/doc/man/man5/slapd-config.5 +++ b/doc/man/man5/slapd-config.5 @@ -1866,6 +1866,7 @@ FALSE, meaning the contextCSN is stored in the context entry. .B [schemachecking=on|off] .B [network\-timeout=] .B [timeout=] +.B [tcp\-user\-timeout=] .B [bindmethod=simple|sasl] .B [binddn=] .B [saslmech=] @@ -2003,6 +2004,13 @@ parameter determines how long the consumer will wait for the initial Bind request to complete. The defaults for these parameters come from .BR ldap.conf (5). +The +.B tcp\-user\-timeout +parameter, if non-zero, corresponds to the +.B TCP_USER_TIMEOUT +set on the target connections, overriding the operating system setting. +Only some systems support the customization of this parameter, it is +ignored otherwise and system-wide settings are used. A .B bindmethod diff --git a/doc/man/man5/slapd-ldap.5 b/doc/man/man5/slapd-ldap.5 index 04f05a08da..cf205d6b07 100644 --- a/doc/man/man5/slapd-ldap.5 +++ b/doc/man/man5/slapd-ldap.5 @@ -442,6 +442,14 @@ the .B keepalive parameter is ignored otherwise, and system-wide settings are used. +.TP +.B tcp\-user\-timeout +If non-zero, corresponds to the +.B TCP_USER_TIMEOUT +set on the target connections, overriding the operating system setting. +Only some systems support the customization of this parameter, it is +ignored otherwise and system-wide settings are used. + .TP .B network\-timeout