From f147ea1baec9397017054927b8461141cc23adf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Wed, 26 Jan 2022 10:35:50 +0000 Subject: [PATCH] Document TLS options do not apply immediately --- Doc/reference/ldap.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Doc/reference/ldap.rst b/Doc/reference/ldap.rst index 57485c7a..06f12016 100644 --- a/Doc/reference/ldap.rst +++ b/Doc/reference/ldap.rst @@ -109,6 +109,11 @@ This module defines the following functions: connections. Applications should call :py:func:`set_option()` before they establish connections with :py:func:`initialize`. + .. note:: + + Most `OPT_X_TLS_*` options do not take effect until `set_option( + OPT_X_TLS_NEWCTX, 0 )` is called. + .. versionchanged:: 3.1 The deprecated functions ``ldap.init()`` and ``ldap.open()`` were removed. @@ -1338,6 +1343,11 @@ Connection-specific LDAP options This method sets the value of the LDAPObject option specified by *option* to *invalue*. + .. note:: + + Most `OPT_X_TLS_*` options do not take effect until `set_option( + OPT_X_TLS_NEWCTX, 0 )` is called. + Object attributes -----------------