NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI
PyPI, #2379 most downloaded on PyPI
Python modules for implementing LDAP clients
Latest stable
3.4.8
Last release 2 months ago
16 Sep 2026
Release timing varies
gaps range from 2 weeks to 1.9 years
Nearly every release is documented
notes for 56 of 58 stable releases
Nothing withdrawn
no release was ever pulled
16 years old
62 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
Plugged memory and reference leaks at error-handling time ( #40 , #617 , #619 , #620 , #621 , #622 , #632 )
Fixes:
Doc:
Infrastructure:
setuptools>=61: older setuptools ignores[project] table and produces an sdist with broken metadataName: unknown), which made pip silently fall back to ancient releases[install] section (compile/optimize) fromsetup.cfg; it caused bdist_wheel to embed __pycache__Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fixes:
Doc:
Infrastructure:
setuptools>=61: older setuptools ignores
the PEP 621 [project] table and produces an sdist with broken metadata
(Name: unknown), which made pip silently fall back to ancient releases
when building 3.4.5 from source (#616). Old environments now fail with a
clear resolver error instead.[install] section (compile/optimize) from
setup.cfg; it caused bdist_wheel to embed __pycache__
byte-code files in published wheels (#615).Released 3.4.7 2026-05-19
No code changes, correcting for the fact that the previous release artifacts uploaded to PyPI contained unintended files.
Released 3.4.6 2026-05-14
Fixes:
attrlist parameter is now properly checked before use, avoiding memory
errors due to type mismatchesextop.ddsldif and ldap.schema modules now actively close sockets as they're
finished with themInfrastructure:
Released 3.4.5 2025-10-10
Security fixes:
str input in
ldap.filter.escape_filter_chars with escape_mode=1; ensure proper
escaping. (thanks to lukas-eu)ldap.dn.escape_dn_chars to \00 per RFC 4514. (thanks to aradona91)Fixes:
Tests:
Doc/
Infrastructure:
Released 3.4.4 2022-11-17
Fixes:
Doc/
Infrastructure:
Released 3.4.3 2022-09-15
This is a minor release to bring back the removed OPT_X_TLS option. Please note, it's still a deprecated option and it will be removed in 3.5.0.
The following deprecated option has been brought back:
OPT_X_TLSFixes:
Released 3.4.2 2022-07-06
This is a minor release to provide out-of-the-box compatibility with the merge of libldap and libldap_r that happened with OpenLDAP's 2.5 release.
The following undocumented functions are deprecated and scheduled for removal:
ldap.cidict.strlist_intersectionldap.cidict.strlist_minusldap.cidict.strlist_unionThe following deprecated option has been removed:
OPT_X_TLSDoc/
Lib/
Modules/
None) and an empty value (exposed as b'')OPT_SOCKET_BIND_ADDRESSESOPT_TCP_USER_TIMEOUTOPT_X_SASL_MAXBUFSIZEOPT_X_SASL_SECPROPSOPT_X_TLS_ECNAMEOPT_X_TLS_PEERCERTOPT_X_TLS_PROTOCOL-related options and constantsFixes:
method keyword to ReconnectLDAPObject.bind_s is now usableReleased 3.4.0 2021-11-26
This release requires Python 3.6 or above, and is tested with Python 3.6 to 3.10. Python 2 is no longer supported.
New code in the python-ldap project is available under the MIT licence
(available in LICENCE.MIT in the source). Several contributors have agreed
to apply this licence their previous contributions as well.
See the README for details.
The following undocumented functions are deprecated and scheduled for removal:
ldap.cidict.strlist_intersectionldap.cidict.strlist_minusldap.cidict.strlist_unionSecurity fixes:
Changes:
ldap_init_fd)bytes
instead of ISO8859-1 decoded strLDAPUrl now treats urlscheme as case-insensitiveOPT_X_TLS_REQUIRE_SANOPT_X_SASL_SSF_EXTERNALOPT_X_TLS_PEERCERTFixes:
copy() method of cidict was added back. It was unintentionally
removed in 3.3.0SASL options on big endian platformsLDAPexception,
rather than raising a SystemError.slapdtest:
SlapdObject uses directory-based configuration of slapdSlapdObject startup is now fasterInfrastructure:
Released 3.3.0 2020-06-18
Highlights:
LDAPError now contains additional fields, such as ctrls, result, msgidpasswd_s can now extract the newly generated passwordThis release is tested on Python 3.8, and the beta of Python 3.9.
The following undocumented functions are deprecated and scheduled for removal:
ldap.cidict.strlist_intersectionldap.cidict.strlist_minusldap.cidict.strlist_unionModules/
Lib/
Doc/
Test/
Infrastructure:
Released 3.2.0 2019-03-13
Lib/
Doc/
Tests/
Infrastructure:
Released 3.1.0 2018-05-25
This release brings two minor API changes:
ldap.open() and ldap.init() are removedLDAPObject.compare_s() and compare_ext_s return bool instead of 0 or 1All changes since 3.0.0:
Lib/
Modules/
Doc/
Tests/
Lib/slapdtest/
Code style:
Infrastructure:
General:
Released 3.0.0 2018-03-12
Notable changes since 2.4.45 (please see detailed logs below):
ldap.async is renamed to ldap.asyncsearchChanges since 3.0.0b4:
Lib/
Modules/
Test/
Doc/
Infrastructure:
Released 3.0.0b4 2018-01-10
Changes since 3.0.0b3:
Removed support for Python 3.3, which reached its end-of-life 2017-09-29.
Lib/
Test/
Doc/
Released 3.0.0b3 2017-12-20
Changes since 3.0.0b2:
The functions ldap.open(), ldap.init(), ldif.CreateLDIF()
and ldif.ParseLDIF(), which were deprecated for over a decade,
are scheduled for removal in python-ldap 3.1.
Infrastructure:
Lib/
Doc/
Test/
Released 3.0.0b2 2017-12-11
Changes since 3.0.0b1:
The module ldap.async is renamed to ldap.asyncsearch, due to
async becoming a keyword in Python 3.7.
The old module name is deprecated, but will be available as long
as Python 3.6 is supported.
Lib/
Modules/
Test/
Demo/
Doc/
Infrastructure:
Released 3.0.0b1 2017-12-04
Changes since 2.4.45: (this list includes changes from 2.5.x)
New dependencies (automatically installed when using pip):
Python 3 support and bytes_mode:
Removed support for Python 2.6.
Infrastructure:
package, depends, install_requires in setup.pyModules/
Lib/
Lib/slapdtest
Tests/
Doc/
Released 2.4.45 2017-10-09
Changes since 2.4.44:
Lib/
Tests/
Released 2.4.44 2017-09-08
Changes since 2.4.43:
Modules/
Released 2.4.43 2017-09-06
Changes since 2.4.42:
Lib/
Tests/
Doc/
Released 2.4.42 2017-09-04
Changes since 2.4.41:
Lib/
Tests/
Released 2.4.41 2017-07-12
Changes since 2.4.40:
Lib/
Released 2.4.40 2017-06-27
Changes since 2.4.39:
Modules/
Released 2.4.39 2017-05-31
Changes since 2.4.38:
Lib/
Lib/slapdtest.py
Released 2.4.38 2017-04-28
Changes since 2.4.37:
Lib/slapdtest.py
Tests/
Released 2.4.37 2017-04-27
Changes since 2.4.36:
Lib/
Tests/
Released 2.4.36 2017-04-26
Changes since 2.4.35:
Lib/
Tests/
Released 2.4.35 2017-04-25
Changes since 2.4.33: (2.4.34 is missing because of foolish pypi version madness)
Modules/
Lib/
Released 2.4.33 2017-04-25
Changes since 2.4.32:
Lib/
Modules/
Tests/
Released 2.4.32 2017-02-14
Changes since 2.4.31:
Running tests made easier:
Released 2.4.31 2017-02-14
Changes since 2.4.30:
Tests/
Released 2.4.30 2017-02-08
Changes since 2.4.29:
Lib/
Released 2.4.29 2017-01-25
Changes since 2.4.28:
Modules/
Released 2.4.28 2016-11-17
Changes since 2.4.27:
Lib/
Released 2.4.27 2016-08-01
Changes since 2.4.26:
Lib/
Released 2.4.26 2016-07-24
Changes since 2.4.25:
Installation:
Lib/
Modules/
Tests/
Released 2.4.25 2016-01-18
Changes since 2.4.23: (2.4.24 is missing because of foolish pypi version madness)
Lib/
Released 2.4.23 2016-01-17
Changes since 2.4.22:
Modules/
Released 2.4.22 2015-10-25
Changes since 2.4.21:
Lib/
Doc/
Released 2.4.21 2015-09-25
Changes since 2.4.20:
Lib/
Tests/
Released 2.4.20 2015-07-07
Changes since 2.4.19:
Modules/
Lib/
Released 2.4.19 2015-01-10
Changes since 2.4.18:
Lib/
Released 2.4.18 2014-10-09
Changes since 2.4.17:
Lib/
Released 2.4.17 2014-09-27
Changes since 2.4.16:
Lib/
Modules/
Released 2.4.16 2014-09-10
Changes since 2.4.15:
Lib/
Released 2.4.15 2014-03-24
Changes since 2.4.14:
Lib/
Modules/
Released 2.4.14 2014-01-31
Changes since 2.4.13:
Lib/
Modules/
Released 2.4.13 2013-06-27
Changes since 2.4.12:
Lib/
Released 2.4.12 2013-06-01
Changes since 2.4.11:
Lib/
Released 2.4.11 2013-05-27
Changes since 2.4.10:
Lib/
Released 2.4.10 2012-06-07
Changes since 2.4.9:
Lib/
Demo/
Released 2.4.9 2012-03-14
Changes since 2.4.8:
Lib/
Released 2.4.8 2012-02-21
Changes since 2.4.7:
Lib/
Released 2.4.7 2012-12-19
Changes since 2.4.6:
Lib/
Modules/
Released 2.4.6 2011-11-27
Changes since 2.4.5:
Lib/
Released 2.4.5 2011-11-25
Changes since 2.4.4:
Installation:
Lib/
Demo/
Released 2.4.4 2011-10-26
Changes since 2.4.3:
Modules/
Lib/
Doc/
Released 2.4.3 2011-07-23
Changes since 2.4.2:
Lib/
Doc/
Released 2.4.2 2011-07-21
Changes since 2.4.1:
Lib/
Logging:
ldap.schema.subentry:
Released 2.4.1 2011-07-05
Changes since 2.4.0:
Modules:
Lib/
Released 2.4.0 2011-06-02
Changes since 2.3.13:
Lib/
Modules/
Released 2.3.13 2011-02-19
Changes since 2.3.12:
Modules/
Released 2.3.12 2010-08-05
Changes since 2.3.11:
Lib/
Modules/
Doc/
Released 2.3.11 2010-02-26
Changes since 2.3.10:
Lib/
Modules/
Doc/
Released 2.3.10 2009-10-30
Changes since 2.3.9:
Lib/
Modules/
Doc/
Released 2.3.9 2009-07-26
Changes since 2.3.8:
Lib/
Modules/
Released 2.3.8 2009-04-30
Changes since 2.3.7:
Lib/
Released 2.3.7 2009-04-09
Changes since 2.3.6:
Lib/
Modules/
Released 2.3.6 2009-02-22
Changes since 2.3.5:
Lib/
Modules/
Doc/
Released 2.3.5 2008-07-06
Changes since 2.3.4:
Lib/
Released 2.3.4 2008-03-29
Changes since 2.3.3:
Modules/
Released 2.3.3 2008-03-26
Changes since 2.3.2:
Fixed backward-compability when building with OpenLDAP 2.3.x libs.
Released 2.3.2 2008-03-26
Changes since 2.3.1:
Lib/
Modules/
Doc/
Released 2.3.1 2007-07-25
Changes since 2.3.0:
Lib/
Modules/
Released 2.3.0 2007-03-27
Changes since 2.2.1:
Modules/
Lib/
Released 2.2.1 2006-11-15
Changes since 2.2.0:
Modules/
Lib/
Released 2.2.0 2006-04-10
Changes since 2.0.11:
Modules/
Lib/
Released 2.0.11 2005-11-07
Changes since 2.0.10:
Lib/
Released 2.0.10 2005-09-23
Changes since 2.0.9:
Lib/
Released 2.0.9 2005-07-28
Changes since 2.0.8:
Modules/
Released 2.0.8 2005-06-22 at Linuxtag 2005, Karlsruhe, Germany
Changes since 2.0.7:
Lib/
Released 2.0.7 2005-04-29
Changes since 2.0.6:
Modules:
Lib/
Released 2.0.6 2004-12-03
Changes since 2.0.5:
Lib/
Released 2.0.5 2004-11-11
Changes since 2.0.4:
Some small improvements for SASL: The noisy output during SASL bind is avoided now. Interaction with output on stderr can be enabled by the calling application by explicitly defining SASL flags.
Removed obsolete directory Win32/.
Lib/
Modules/
Released 2.0.4 2004-10-27
Changes since 2.0.3:
Modules/
setup.py and Modules/
Released 2.0.3 2004-10-06
Changes since 2.0.2:
Demo/:
Modules/
Lib/
Released 2.0.2 2004-07-29
Changes since 2.0.1:
Modules/
Released 2.0.1 2004-06-29
Changes since 2.0.0:
dsml:
ldap.schema.models:
Released 2.0.0 2004-05-18
Changes since 2.0.0pre21:
ldif:
Modules/
ldap.ldapobject:
Released 2.0.0pre21 2004-03-29
Changes since 2.0.0pre20:
setup.py:
Modules/
ldap.ldapobject:
Released 2.0.0pre20 2004-03-19
Changes since 2.0.0pre19:
Modules/
ldap.ldapobject:
ldap.functions:
ldap.sasl:
ldap.async:
Released 2.0.0pre19 2004-01-22
Changes since 2.0.0pre18:
Modules/
ldap.ldapobject.LDAPObject:
ldap.modlist:
Released 2.0.0pre18 2003-12-09
Changes since 2.0.0pre17:
ldap.ldapobject:
Released 2.0.0pre17 2003-12-03
Changes since 2.0.0pre16:
ldap.functions:
Released 2.0.0pre16 2003-12-02
Changes since 2.0.0pre15:
Modules/
All in Lib/
dsml:
ldap.ldapobject:
ldap.functions:
ldap.async:
ldap.schema:
Fixes:
Plugged memory and reference leaks at error-handling time (#40, #617, #619, #620, #621, #622, #632)
VLV control now honors contextID passed in (#618)
ldapurl now correctly escapes when emitting an HTML anchor (#628)
_ldap.str2dn now handles empty string correctly (#549)
Handle server-sent invalid UTF-8 correctly (by throwing an error) (#624)
corrected ldap.functions export list to remove long gone items
Doc:
file descriptor ownership has now been clarified - if providing a file descriptor to set up a new ~ldap.ldapobject.LDAPObject, it is now owned and managed by the module, do not close it yourself (#575)
clarifications on handling EINTR -> use ldap.OPT_RESTART (#242)
clarified build dependencies (#569)
clarified ldap.OPT_CLIENT_CONTROLS/ldap.OPT_SERVER_CONTROLS (#639)
Infrastructure:
Build requirement pinned to setuptools>=61: older setuptools ignores the PEP 621 [project] table and produces an sdist with broken metadata (Name: unknown), which made pip silently fall back to ancient releases when building 3.4.5 from source (#616). Old environments now fail with a clear resolver error instead.
Removed the [install] section (compile/optimize) from setup.cfg; it caused bdist_wheel to embed __pycache__ byte-code files in published wheels (#615).
No code changes, correcting for the fact that the previous release artifacts uploaded to PyPI contained unintended files.
No code changes, correcting for the fact that the previous release artifacts
uploaded to PyPI contained unintended files.
attrlist parameter is now properly checked before use, avoiding memory errors due to type mismatches
Fixes:
attrlist parameter is now properly checked before use, avoiding memoryextop.ddsldif and ldap.schema modules now actively close sockets as they'reInfrastructure:
CVE-2025-61911 ( GHSA-r7r6-cc7p-4v5m ): Enforce str input in ldap.filter.escape_filter_chars with escape_mode=1 ; ensure proper escaping. (thanks to l…
Released 3.4.5 2025-10-10
Security fixes:
str input inldap.filter.escape_filter_chars with escape_mode=1; ensure properldap.dn.escape_dn_chars to \00 per RFC 4514. (thanks to aradona91)Fixes:
Tests:
Doc/
Infrastructure:
Security fixes:
CVE-2025-61911 (GHSA-r7r6-cc7p-4v5m): Enforce str input in ldap.filter.escape_filter_chars with escape_mode=1; ensure proper escaping. (thanks to lukas-eu)
CVE-2025-61912 (GHSA-p34h-wq7j-h5v6): Correct NUL escaping in ldap.dn.escape_dn_chars to \00 per RFC 4514. (thanks to aradona91)
Fixes:
~ldap.ldapobject.ReconnectLDAPObject now properly reconnects on ldap.UNAVAILABLE, ldap.CONNECT_ERROR and ldap.TIMEOUT exceptions (previously only ldap.SERVER_DOWN), fixing reconnection issues especially during server restarts
Fixed syncrepl.py to use named constants instead of raw decimal values for result types
Fixed error handling in ~ldap.controls.openldap.SearchNoOpMixIn to prevent an undefined variable error
Tests:
Added comprehensive reconnection test cases including concurrent operation handling and server restart scenarios
Doc/
Updated installation docs and fixed various documentation typos
Added ReadTheDocs configuration file
Infrastructure:
Add testing and document support for Python 3.13
Reconnect race condition in ReconnectLDAPObject is now fixed
Released 3.4.4 2023-11-17
Fixes:
Doc/
Infrastructure:
Fixes:
Reconnect race condition in ~ldap.ldapobject.ReconnectLDAPObject is now fixed
Socket ownership is now claimed once we have passed it to libldap
LDAP_set_option string formats are now compatible with Python 3.12
Doc/
Security Policy was created
Broken article links are fixed now
Bring Conscious Language improvements
Infrastructure:
Add testing and document support for Python 3.10, 3.11, and 3.12
This is a minor release to bring back the removed OPT_X_TLS option. Please note, it's still a deprecated option and it will be removed in 3.5.0.
Released 3.4.3 2022-09-15
This is a minor release to bring back the removed OPT_X_TLS option.
Please note, it's still a deprecated option and it will be removed in 3.5.0.
The following deprecated option has been brought back:
OPT_X_TLSFixes:
This is a minor release to bring back the removed ldap.OPT_X_TLS option. Please note, it's still a deprecated option and it will be removed in 3.5.0.
The following deprecated option has been brought back:
ldap.OPT_X_TLS
Fixes:
Sphinx documentation is now successfully built
PyPy 3 test stability was improved
setup.py deprecation warning is now resolved
The following undocumented functions are deprecated and scheduled for removal:
Released 3.4.2 2022-07-06
This is a minor release to provide out-of-the-box compatibility with the merge
of libldap and libldap_r that happened with OpenLDAP's 2.5 release.
The following undocumented functions are deprecated and scheduled for removal:
ldap.cidict.strlist_intersectionldap.cidict.strlist_minusldap.cidict.strlist_unionThe following deprecated option has been removed:
OPT_X_TLSDoc/
Lib/
Modules/
None) and an empty value (exposed as b'')OPT_SOCKET_BIND_ADDRESSESOPT_TCP_USER_TIMEOUTOPT_X_SASL_MAXBUFSIZEOPT_X_SASL_SECPROPSOPT_X_TLS_ECNAMEOPT_X_TLS_PEERCERTOPT_X_TLS_PROTOCOL-related options and constantsFixes:
method keyword to ReconnectLDAPObject.bind_s is now usableThis is a minor release to provide out-of-the-box compatibility with the merge of libldap and libldap_r that happened with OpenLDAP's 2.5 release.
The following undocumented functions are deprecated and scheduled for removal:
ldap.cidict.strlist_intersection
ldap.cidict.strlist_minus
ldap.cidict.strlist_union
The following deprecated option has been removed:
ldap.OPT_X_TLS
Doc/
SASL option usage has been clarified
Lib/
ppolicy control definition has been updated to match Behera draft 11
Modules/
By default, compile against libldap, checking whether it provides a thread-safe implementation at runtime
When decoding controls, the module can now distinguish between no value (now exposed as None) and an empty value (exposed as b'')
Several new OpenLDAP options are now supported: * ldap.OPT_SOCKET_BIND_ADDRESSES * ldap.OPT_TCP_USER_TIMEOUT * ldap.OPT_X_SASL_MAXBUFSIZE * ldap.OPT_X_SASL_SECPROPS * ldap.OPT_X_TLS_ECNAME * ldap.OPT_X_TLS_PEERCERT * ldap.OPT_X_TLS_PROTOCOL-related options and constants
Fixes:
Encoding/decoding of boolean controls has been corrected
ldap.schema.models.Entry is now usable
method keyword to ~ldap.ldapobject.ReconnectLDAPObject.bind_s is now usable
The following undocumented functions are deprecated and scheduled for removal:
This release requires Python 3.6 or above,
and is tested with Python 3.6 to 3.10.
Python 2 is no longer supported.
New code in the python-ldap project is available under the MIT licence
(available in LICENCE.MIT in the source). Several contributors have agreed
to apply this licence their previous contributions as well.
See the README for details.
The following undocumented functions are deprecated and scheduled for removal:
ldap.cidict.strlist_intersectionldap.cidict.strlist_minusldap.cidict.strlist_unionSecurity fixes:
Changes:
ldap_init_fd)bytesstrLDAPUrl now treats urlscheme as case-insensitiveOPT_X_TLS_REQUIRE_SANOPT_X_SASL_SSF_EXTERNALOPT_X_TLS_PEERCERTFixes:
copy() method of cidict was added back. It was unintentionallySASL options on big endian platformsLDAPexception,SystemError.slapdtest:
SlapdObject uses directory-based configuration of slapdSlapdObject startup is now fasterInfrastructure:
This release requires Python 3.6 or above, and is tested with Python 3.6 to 3.10. Python 2 is no longer supported.
New code in the python-ldap project is available under the MIT license (available in LICENCE.MIT in the source). Several contributors have agreed to apply this license to their previous contributions as well. See the README for details.
The following undocumented functions are deprecated and scheduled for removal:
ldap.cidict.strlist_intersection
ldap.cidict.strlist_minus
ldap.cidict.strlist_union
Security fixes:
Fix inefficient regular expression which allows denial-of-service attacks when parsing specially-crafted LDAP schema. (GHSL-2021-117)
Changes:
On MacOS, remove option to make LDAP connections from a file descriptor when built with the system libldap (which lacks the underlying function, ldap_init_fd)
Attribute values of the post read control are now bytes instead of ISO8859-1 decoded str
ldapurl.LDAPUrl now treats ldapurl.LDAPUrl.urlscheme as case-insensitive
Several OpenLDAP options are now supported: * ldap.OPT_X_TLS_REQUIRE_SAN * ldap.OPT_X_SASL_SSF_EXTERNAL * ldap.OPT_X_TLS_PEERCERT
Fixes:
The ldap.cidict.cidict.copy method of ldap.cidict.cidict was added back. It was unintentionally removed in 3.3.0
Fixed getting/setting SASL options on big-endian platforms
Unknown LDAP result codes are now converted to ldap.LDAPError, rather than raising a SystemError.
slapdtest:
Show stderr of slapd -Ttest
slapdtest.SlapdObject uses directory-based configuration of slapd
slapdtest.SlapdObject startup is now faster
Infrastructure:
CI now runs on GitHub Actions rather than Travis CI.
On MacOS, remove option to make LDAP connections from a file descriptor when built wit the system libldap (which lacks the underlying function, ldap_i
Released 3.3.1 2020-06-29
Changes:
ldap_init_fd)The following undocumented functions are deprecated and scheduled for removal:
Released 3.3.0 2020-06-18
Highlights:
LDAPError now contains additional fields, such as ctrls, result, msgidpasswd_s can now extract the newly generated passwordThis release is tested on Python 3.8, and the beta of Python 3.9.
The following undocumented functions are deprecated and scheduled for removal:
ldap.cidict.strlist_intersectionldap.cidict.strlist_minusldap.cidict.strlist_unionModules/
Lib/
Doc/
Test/
Infrastructure:
Highlights:
ldap.LDAPError now contains additional fields, such as ctrls, result, msgid
~ldap.ldapobject.LDAPObject.passwd_s can now extract the newly generated password
LDAP connections can now be made from a file descriptor
This release is tested on Python 3.8, and the beta of Python 3.9.
The following undocumented functions are deprecated and scheduled for removal:
ldap.cidict.strlist_intersection
ldap.cidict.strlist_minus
ldap.cidict.strlist_union
Modules/
Ensure ~ldap.ldapobject.ReconnectLDAPObject is not left in an inconsistent state after a reconnection timeout
Syncrepl now correctly parses SyncInfoMessage when the message is a syncIdSet
Release GIL around global get/set option call
Do not leak serverctrls in result functions
Don't over-allocate memory in attrs_from_List()
Fix thread support check for Python 3
With OpenLDAP 2.4.48, use the new header openldap.h
Lib/
Fix some edge cases regarding quoting in the schema tokenizer
Fix escaping a single space in ldap.dn.escape_dn_chars
Fix string formatting in ldap.compare_ext_s
Prefer iterating dict instead of calling dict.keys
Doc/
Clarify the relationship between ldap.initialize and ~ldap.ldapobject.LDAPObject
Improve documentation of TLS options
Update FAQ to include Samba AD-DC error message "Operation unavailable without authentication"
Fix several incorrect examples and demos (but note that these are not yet tested)
Update Debian installation instructions for Debian Buster
Typo fixes in documentation and doc strings
Test/
Test and document error cases in ldap.compare_s
Test if reconnection is done after connection loss
Make test certificates valid for the far future
Use slapd -Tt instead of slaptest
Infrastructure:
Mark the LICENCE file as a license for setuptools
Use unittest discover rather than setup.py test to run tests
Add support for X-ORIGIN in ldap.schema's ObjectClass
Released 3.2.0 2019-03-13
Lib/
Doc/
Tests/
Infrastructure:
Lib/
Add support for X-ORIGIN in ldap.schema's ~ldap.schema.models.ObjectClass
Make ldap.initialize pass extra keyword arguments to ~ldap.ldapobject.LDAPObject
ldap.controls.sss: use str instead of basestring on Python 3
Provide ldap._trace_* attributes in non-debug mode
Doc/
Fix ReST syntax for links to ~ldap.ldapobject.LDAPObject.set_option and ~ldap.ldapobject.LDAPObject.get_option
Tests/
Use intersphinx to link to Python documentation
Correct type of some attribute values to bytes
Use system-specific ENOTCONN value
Infrastructure:
Add testing and document support for Python 3.7
Add Python 3.8-dev to Tox and CI configuration
Add Doc/requirements.txt for building on Read the Docs
Long-deprecated functions ldap.open() and ldap.init() are removed
Released 3.1.0 2018-05-25
This release brings two minor API changes:
ldap.open() and ldap.init() are removedLDAPObject.compare_s() and compare_ext_s return bool instead of 0 or 1All changes since 3.0.0:
Lib/
Modules/
Doc/
Tests/
Lib/slapdtest/
Code style:
Infrastructure:
General:
This release brings two minor API changes:
Long-deprecated functions ldap.open and ldap.init are removed
~ldap.ldapobject.LDAPObject.compare_s and ~ldap.ldapobject.LDAPObject.compare_ext_s return bool instead of 0 or 1
All changes since 3.0.0:
Lib/
Remove long deprecated functions ldap.open and ldap.init
~ldap.ldapobject.LDAPObject.compare_s and ~ldap.ldapobject.LDAPObject.compare_ext_s now return a bool instead of 1 or 0.
Make iteration over ldap.cidict.cidict yield same values as dict.keys
Fail if pyasn1 is not installed
Fix parsing of ldap.controls.ppolicy.PPolicyControl ASN.1 structure
Use dict.items when appropriate in dict iteration
Add support for tracing LDAP calls. Tracing can now be enabled with the environment variable PYTHON_LDAP_TRACE_LEVEL and redirected to a file with PYTHON_LDAP_TRACE_FILE. (This is mainly intended for debugging and internal testing; the configuration or output may change in future versions.)
Modules/
Fix ref counting bug in LDAPmessage_to_python
Doc/
Remove warning about unreleased version
Doc: Replace Mac OS X -> macOS
Tests/
Add tests and coverage for tracing
Disable warnings-as-errors for Python 3.4
Fix assertTrue to assertEqual
Mark several test values as bytes
Lib/slapdtest/
Fix error message for missing commands
Make slapdtest.SlapdObject a context manager
Disable SASL external when missing SASL support
Make ~slapdtest.SlapdObject.root_dn a property
In slapdtest.SlapdObject, build include directives dynamically
Move import statements to top level
Code style:
Add Makefile rules for automatic formatting of C and Python code
Reformat and indent all C files
Trim whitespace throughout the project
Infrastructure:
Add py3-trace tox environment to Travis CI configuration
Add new pytest cache directory to .gitignore
General:
Update all pypi.python.org URLs to pypi.org
The functions ldap.open(), ldap.init(), ldif.CreateLDIF() and ldif.ParseLDIF(), which were deprecated for over a decade, are scheduled for removal in…
Notable changes since 2.4.45 (please see detailed logs below):
ldap.async is renamed to ldap.asyncsearchReleased 3.0.0 2018-03-12
Changes since 3.0.0b4:
Lib/
Modules/
Test/
Doc/
Infrastructure:
Released 3.0.0b4 2018-01-10
Changes since 3.0.0b3:
Removed support for Python 3.3, which reached its end-of-life 2017-09-29.
Lib/
Test/
Doc/
Released 3.0.0b3 2017-12-20
Changes since 3.0.0b2:
The functions ldap.open(), ldap.init(), ldif.CreateLDIF()
and ldif.ParseLDIF(), which were deprecated for over a decade,
are scheduled for removal in python-ldap 3.1.
Infrastructure:
Lib/
Doc/
Test/
Released 3.0.0b2 2017-12-11
Changes since 3.0.0b1:
The module ldap.async is renamed to ldap.asyncsearch, due to
async becoming a keyword in Python 3.7.
The old module name is deprecated, but will be available as long
as Python 3.6 is supported.
Lib/
Modules/
Test/
Demo/
Doc/
Infrastructure:
Released 3.0.0b1 2017-12-04
Changes since 2.4.45: (this list includes changes from 2.5.x)
New dependencies (automatically installed when using pip):
Python 3 support and bytes_mode:
Removed support for Python 2.6.
Infrastructure:
package, depends, install_requires in setup.pyModules/
Lib/
Lib/slapdtest
Tests/
Doc/
Removed support for Python 3.3, which reached its end-of-life 2017-09-29.
Released 3.0.0b4 2018-01-10
Changes since 3.0.0b3:
Removed support for Python 3.3, which reached its end-of-life 2017-09-29.
Lib/
Test/
Doc/
Changes since 3.0.0b3:
Removed support for Python 3.3, which reached its end-of-life 2017-09-29.
Lib/
Make default argument values work under bytes_mode
Update use of map to use list/set comprehensions instead
Test/
Refactor syncrepl tests to run with bytes_mode
Doc/
Document ~ldif.LDIFRecordList.all_records attribute of ldif.LDIFRecordList
The functions ldap.open(), ldap.init(), ldif.CreateLDIF() and ldif.ParseLDIF(), which were deprecated for over a decade, are scheduled for removal in…
Released 3.0.0b3 2017-12-20
Changes since 3.0.0b2:
The functions ldap.open(), ldap.init(), ldif.CreateLDIF()
and ldif.ParseLDIF(), which were deprecated for over a decade,
are scheduled for removal in python-ldap 3.1.
Infrastructure:
Lib/
Doc/
Test/
Changes since 3.0.0b2:
The functions ldap.open, ldap.init, ldif.CreateLDIF and ldif.ParseLDIF, which were deprecated for over a decade, are scheduled for removal in python-ldap 3.1.
Infrastructure:
Require setuptools to build
Start running automatic tests on PyPy
Lib/
When raising ldap.LDAPBytesWarning, give helpful code locations
Use modern Python idioms in several places
Avoid re-implementing collections.UserDict.get in ldap.cidict.cidict and ldap.schema.models.Entry
Doc/
Use HTTPS links
Test/
Add reproducer for OpenLDAP's NSS shutdown/restart issue
Make testing on non-Linux platforms easier
The module ldap.async is renamed to ldap.asyncsearch, due to async becoming a keyword in Python 3.7. The old module name is deprecated, but will be av…
Released 3.0.0b2 2017-12-11
Changes since 3.0.0b1:
The module ldap.async is renamed to ldap.asyncsearch, due to
async becoming a keyword in Python 3.7.
The old module name is deprecated, but will be available as long
as Python 3.6 is supported.
Lib/
Modules/
Test/
Demo/
Doc/
Infrastructure:
Changes since 3.0.0b1:
The module ldap.async is renamed to ldap.asyncsearch, due to async becoming a keyword in Python 3.7. The old module name is deprecated, but will be available as long as Python 3.6 is supported.
Lib/
Use custom ldap.LDAPBytesWarning class
Rename ldap.async to ldap.asyncsearch
Modules/
Support None for ~ldap.ldapobject.LDAPObject.set_option (ldap.OPT_TIMEOUT) and ldap.OPT_NETWORK_TIMEOUT
Fix error reporting of ~ldap.ldapobject.LDAPObject.set_option
Change memory handling in attrs_from_List()
Test/
Remove workaround for OpenLDAP NSS issue
Demo/
Use uniform shebang in all demos
Doc/
Provide build dependencies for Alpine and CentOS
Move sample workflow out of the main Contributing guide
Infrastructure:
Add valgrind target to check for memory leaks
Minimal configuration for pytest
Changes since 2.4.45: (this list includes changes from 2.5.x)
Released 3.0.0b1 2017-12-04
Changes since 2.4.45: (this list includes changes from 2.5.x)
New dependencies (automatically installed when using pip):
Python 3 support and bytes_mode:
Removed support for Python 2.6.
Infrastructure:
package, depends, install_requires in setup.pyModules/
Lib/
Lib/slapdtest
Tests/
Doc/
Nothing published for this version
Nothing published for this version
Fixed re-raising of the wrong exception in ~ldap.ldapobject.SimpleLDAPObject._ldap_call (thanks to Aigars Grins)
Changes since 2.4.44:
Lib/
Fixed re-raising of the wrong exception in ~ldap.ldapobject.SimpleLDAPObject._ldap_call (thanks to Aigars Grins)
Tests/
removed work-around in t_cext.py
more fine-grained GIL releasing in function l_ldap_result4()
Changes since 2.4.43:
Modules/
more fine-grained GIL releasing in function l_ldap_result4()
fixed passing all arguments from ~ldap.ldapobject.LDAPObject.sasl_non_interactive_bind_s to ~ldap.ldapobject.LDAPObject.sasl_interactive_bind_s
Changes since 2.4.42:
Lib/
fixed passing all arguments from ~ldap.ldapobject.LDAPObject.sasl_non_interactive_bind_s to ~ldap.ldapobject.LDAPObject.sasl_interactive_bind_s
Tests/
added test for ~ldap.ldapobject.LDAPObject.sasl_external_bind_s
Doc/
added docs for SASL bind methods
more references
better sorting of ~ldap.ldapobject.LDAPObject methods
avoid deprecated method alias unittest.TestCase.assertEquals
Changes since 2.4.41:
Lib/
added new slapdtest.SlapdObject methods ~slapdtest.SlapdObject._ln_schema_files and ~slapdtest.SlapdObject._create_sub_dirs
slapdtest.SlapdObject methods ~slapdtest.SlapdObject.setup_rundir and ~slapdtest.SlapdObject.gen_config are now "public" methods
removed pseudo test script from module ldap.cidict
Tests/
added sub-module for testing class ldap.cidict.cidict
avoid deprecated method alias unittest.TestCase.assertEquals
Added support for increment: lines in LDIF changes records
Changes since 2.4.40:
Lib/
Added support for increment: lines in LDIF changes records
fixed memory leaks when using extended controls (thanks to Erik Cumps)
Changes since 2.4.39:
Modules/
fixed memory leaks when using extended controls (thanks to Erik Cumps)
fixed errno-related ldap.TIMEOUT regression
Changes since 2.4.38:
Lib/
fixed errno-related ldap.TIMEOUT regression
Lib/slapdtest.py
Removed obsolete assert statements
slapdtest.SlapdObject now evaluates environment variable SLAPD for optionally pointing to OpenLDAP's slapd executable (e.g. with OpenLDAP LTB builds)
Changes since 2.4.37:
Lib/slapdtest.py
slapdtest.SlapdObject now evaluates environment variable SLAPD for optionally pointing to OpenLDAP's slapd executable (e.g. with OpenLDAP LTB builds)
added LDAPI support in slapdtest.SlapdObject, which is internally used in methods ~slapdtest.SlapdObject.ldapadd and ~slapdtest.SlapdObject.ldapwhoami
added method ~slapdtest.SlapdObject.ldapmodify
fixed enabling logger in slaptest
directory name now contains port to be able to run several slapdtest.SlapdObject instances side-by-side (e.g. with replication)
added authz-regexp mapping to rootdn for user running the test
internally use SASL/EXTERNAL via LDAPI to bind
~slapdtest.SlapdObject.server_id used as serverID in slapd.conf for MMR
Removed method ~slapdtest.SlapdObject.started because ~slapdtest.SlapdTestCase.setUpClass will be used to add initial entries
Tests/
~ldap.ldapobject.ReconnectLDAPObject is also tested by sub-classing test class
fixed errno-related regression introduced in 2.4.35
Changes since 2.4.36:
Lib/
fixed errno-related regression introduced in 2.4.35
Tests/
added more checks to t_cext.py
renamed t_search.py to t_ldapobject.py and code-cleaning
added test for errno-related regression to t_ldapobject.py
gracefully handle KeyError in ~ldap.ldapobject.SimpleLDAPObject._ldap_call when using errno
Changes since 2.4.35:
Lib/
gracefully handle KeyError in ~ldap.ldapobject.SimpleLDAPObject._ldap_call when using errno
added new standalone module slapdtest (formerly Tests/slapd.py) for general use (still experimental)
Tests/
refactored t_cext.py and t_search.py
set environment variable LDAPNOINIT=1 in t_cext.py and t_search.py to avoid interference with locally installed .ldaprc or ldap.conf
by default back-mdb is now used for slapd-based tests which requires fairly recent OpenLDAP builds but implements full feature set
environment variables can be set for slapd.py to tweak path names of executable, temporary, and schema data to be used
new class slapdtest.SlapdTestCase
Changes since 2.4.33: (2.4.34 is missing because of foolish PyPI version madness)
Changes since 2.4.33: (2.4.34 is missing because of foolish PyPI version madness)
Modules/
use errno in a safer way
set errno as LDAPError class item
do not use strerror which is not thread-safe and platform-specific
Lib/
~ldap.ldapobject.SimpleLDAPObject._ldap_call sets LDAPError info to value returned by platform-neutral os.strerror
faster implementation of ldap.schema.tokenizer.split_tokens (thanks to Christian Heimes)
Changes since 2.4.32:
Lib/
faster implementation of ldap.schema.tokenizer.split_tokens (thanks to Christian Heimes)
removed unused second argument of ldap.schema.tokenizer.split_tokens
fixed method calls in ~ldap.ldapobject.ReconnectLDAPObject (thanks to Philipp Hahn)
Modules/
an empty info message is replaced with strerror(errno) if errno is non-zero which gives more information e.g. in case of ldap.SERVER_DOWN (thanks to Markus Klein)
removed superfluous ldap_memfree(error) from LDAPerror() (thanks to Markus Klein)
Tests/
refactored t_ldap_schema_tokenizer.py
Changes since 2.4.31: Running tests made easier: - python setup.py test - added tox.ini
Changes since 2.4.31:
Running tests made easier:
python setup.py test
added tox.ini
new test scripts t_ldap_schema_tokenizer.py and t_ldap_modlist.py on former raw scripts (thanks to Petr Viktorin)
Changes since 2.4.30:
Tests/
new test scripts t_ldap_schema_tokenizer.py and t_ldap_modlist.py on former raw scripts (thanks to Petr Viktorin)
new test cases in t_ldapurl.py based on former raw scripts (thanks to Petr Viktorin)
new test-cases in t_ldap_dn.py
moved a script to Demo/
compatibility fix in ldap.controls.deref to be compatible with recent pyasn1 0.2.x (thanks to Ilya Etingof)
Changes since 2.4.29:
Lib/
compatibility fix in ldap.controls.deref to be compatible with recent pyasn1 0.2.x (thanks to Ilya Etingof)
Fixed checking for empty server error message (thanks to Bradley Baetz)
Changes since 2.4.28:
Modules/
Fixed checking for empty server error message (thanks to Bradley Baetz)
Fixed releasing GIL when calling ldap_start_tls_s() (thanks to Lars Munch)
~ldap.ldapobject.LDAPObject.unbind_ext_s invokes ~ldap.ldapobject.LDAPObject._trace_file.flush only if ~ldap.ldapobject.LDAPObject._trace_level is non
Changes since 2.4.27:
Lib/
~ldap.ldapobject.LDAPObject.unbind_ext_s invokes ~ldap.ldapobject.LDAPObject._trace_file.flush only if ~ldap.ldapobject.LDAPObject._trace_level is non-zero and Python is running in debug mode
~ldap.ldapobject.LDAPObject.unbind_ext_s now ignores AttributeError in case ~ldap.ldapobject.LDAPObject._trace_file has no flush() method
added dummy method ldap.logger.logging_file_class.flush because ~ldap.ldapobject.LDAPObject.unbind_ext_s invokes it
added strf_secs and strp_secs to ldap.functions.__all__
Changes since 2.4.26:
Lib/
added strf_secs and strp_secs to ldap.functions.__all__
fixed regression introduced with 2.4.26: ldif.LDIFParser did not fully parse LDIF records without trailing empty separator line
added ldap.controls.sss to py_modules in setup.py
Changes since 2.4.25:
Installation:
added ldap.controls.sss to py_modules in setup.py
Lib/
~ldap.ldapobject.LDAPObject.unbind_ext now removes class attribute ~ldap.ldapobject.LDAPObject._l to completely invalidate C wrapper object
~ldap.ldapobject.LDAPObject.unbind_ext now flushes trace file
ldap.ldapobject.SimpleLDAPObject: added convenience methods ~ldap.ldapobject.SimpleLDAPObject.read_rootdse_s and ~ldap.ldapobject.SimpleLDAPObject.get_naming_contexts
added functions ldap.strf_secs and ldap.strp_secs
added function ldap.filter.time_span_filter
Refactored ldif.LDIFParser * ldif.LDIFParser.version is now an integer * ignore multiple empty lines between records
Fixed ldap.dn.is_dn
Modules/
Fixed #69 segmentation fault on whoami_s after unbind (thanks to Christian Heimes and Petr Viktorin)
Tests/
Fixed ~ldap.ldapobject.LDAPObject.result3 being used instead of correct ~ldap.ldapobject.LDAPObject.result4 (see #66, thanks to David D. Riddle)
Tests/slapd.py honors environment variable $TMP instead of just using hard-coded /var/tmp
Tests/slapd.py now expects schema to be in /etc/openldap/
Tests/t_ldapurl.py now independent of module ldap
Tests/t_ldif.py now has more test-cases including change records
added some more test scripts for sub-modules ldap.dn, ldap.filter and ldap.functions (not complete yet)
Changes since 2.4.23: (2.4.24 is missing because of foolish PyPI version madness)
Changes since 2.4.23: (2.4.24 is missing because of foolish PyPI version madness)
Lib/
Fix for attrlist=None regression introduced in 2.4.23 by ref count patch
ldif.LDIFParser now also accepts value-spec without a space after the colon.
Changes since 2.4.21:
Lib/
ldif.LDIFParser now also accepts value-spec without a space after the colon.
Added keyword argument authz_id to ~ldap.ldapobject.LDAPObject methods ~ldap.ldapobject.LDAPObject.sasl_non_interactive_bind_s, ~ldap.ldapobject.LDAPObject.sasl_external_bind_s, and ~ldap.ldapobject.LDAPObject.sasl_gssapi_bind_s
Added missing self to ~ldap.ldapobject.LDAPObject.fileno.
~ldap.ldapobject.ReconnectLDAPObject.sasl_bind_s now correctly uses generic wrapper arguments *args,**kwargs
Correct method name ldif.LDIFParser.handle_modify
Corrected __all__ in ldap.controls.pwdpolicy and ldap.controls.openldap
Doc/
Started missing docs for sub-module ldap.sasl.
~ldap.ldapobject.LDAPObject.read_s now returns None instead of raising ldap.NO_SUCH_OBJECT in case the search operation returned empty result.
Changes since 2.4.20:
Lib/
~ldap.ldapobject.LDAPObject.read_s now returns None instead of raising ldap.NO_SUCH_OBJECT in case the search operation returned empty result.
ldap.resiter.ResultProcessor.allresults now takes new keyword argument add_ctrls which is internally passed to ~ldap.ldapobject.LDAPObject.result4 and lets the method also return response control along with the search results.
Added ldap.controls.deref implementing support for dereference control
Tests/
Unit tests for module ldif (thanks to Petr Viktorin)
New wrapping of OpenLDAP's function ldap_sasl_bind_s() allows to intercept the SASL handshake (thanks to René Kijewski)
Changes since 2.4.19:
New wrapping of OpenLDAP's function ldap_sasl_bind_s() allows to intercept the SASL handshake (thanks to René Kijewski)
Modules/
Added exceptions ldap.VLV_ERROR, ldap.X_PROXY_AUTHZ_FAILURE and ldap.AUTH_METHOD_NOT_SUPPORTED
Lib/
Abandoned old syntax when raising ValueError in modules ldif and ldapurl, more information in some exceptions.
ldap.ldapobject ~ldap.ldapobject.LDAPObject: New convenience methods for SASL GSSAPI or EXTERNAL binds
Refactored parts in ldif.LDIFParser:
New class attributes ~ldif.LDIFParser.line_counter and ~ldif.LDIFParser.byte_counter contain amount of LDIF data read so far
Renamed some internally used methods
Added support for parsing change records currently limited to changetype: modify
New separate methods ~ldif.LDIFParser.parse_entry_records (also called by ~ldif.LDIFParser.parse) and ~ldif.LDIFParser.parse_change_records
Stricter order checking of dn:, changetype:, etc.
Removed non-existent AttrTypeandValueLDIF from ldif.__all__
New mix-in ldap.controls.openldap.SearchNoOpMixIn adds convenience method noop_search_st to ~ldap.ldapobject.LDAPObject class
Added new modules which implement the control classes for Virtual List View (see draft-ietf-ldapext-ldapv3-vlv) and Server-side Sorting (see RFC 2891) (thanks to Benjamin Dauvergne) Note: This is still experimental! Even the API can change later.
Fixed missing ~ldap.ldapobject.ReconnectLDAPObject._reconnect_lock when pickling (see SF#64, thanks to Dan O'Reilly)
Changes since 2.4.18:
Lib/
Fixed missing ~ldap.ldapobject.ReconnectLDAPObject._reconnect_lock when pickling (see SF#64, thanks to Dan O'Reilly)
Added ldap.controls.pagedresults which is pure Python implementation of Simple Paged Results Control (see RFC 2696) and delivers the correct result size
Fixed raising exception in ~ldap.ldapobject.LDAPObject.read_s when reading an entry returns empty search result
Changes since 2.4.17:
Lib/
Fixed raising exception in ~ldap.ldapobject.LDAPObject.read_s when reading an entry returns empty search result
New hook ~ldap.syncrepl.SyncReplConsumer.syncrepl_refreshdone in ldap.syncrepl.SyncReplConsumer (thanks to Petr Spacek and Chris Mikkelson)
Changes since 2.4.16:
Lib/
New hook ~ldap.syncrepl.SyncReplConsumer.syncrepl_refreshdone in ldap.syncrepl.SyncReplConsumer (thanks to Petr Spacek and Chris Mikkelson)
Modules/
Added support for getting file descriptor of connection with ldap.OPT_DESC
New convenience function ldap.dn.is_dn
Changes since 2.4.15:
Lib/
New convenience function ldap.dn.is_dn
New convenience function ldap.escape_str
New convenience methods ~ldap.ldapobject.LDAPObject.read_s and ~ldap.ldapobject.LDAPObject.find_unique_entry
Fixed invoking ~ldap.ldapobject.LDAPObject.start_tls_s in ~ldap.ldapobject.ReconnectLDAPObject.reconnect (thanks to Philipp Hahn)
Added missing modules ldap.controls.openldap and ldap.controls.pwdpolicy to setup.py
Changes since 2.4.14:
Lib/
Added missing modules ldap.controls.openldap and ldap.controls.pwdpolicy to setup.py
Added missing imports to ldap.controls.pwdpolicy
Fixed ldap.controls.pwdpolicy.decodeControlValue to decode string of digits
Support for X-SUBST in schema element class LDAPSyntax
Support for X-ORDERED and X-ORIGIN in schema element class ~ldap.schema.models.AttributeType
ldapurl: New scope 'subordinates' defined in draft-sermersheim-ldap-subordinate-scope
Modules/
New constant ldap.SCOPE_SUBORDINATE derived from ldap.h for draft-sermersheim-ldap-subordinate-scope
Fixed constant ldap.sasl.CB_GETREALM (thanks to Martin Pfeifer)
Added ldap.controls.openldap.SearchNoOpControl
Changes since 2.4.13:
Lib/
Added ldap.controls.openldap.SearchNoOpControl
New method ldap.async.AsyncSearchHandler.afterFirstResult for doing something right after successfully receiving but before processing first result
Better log data written when invoking ~ldap.LDAPLock.acquire and ~ldap.LDAPLock.release
~ldap.ldapobject.LDAPObject and friends now pass desc to ldap.LDAPLock which results in better logging
~ldap.ldapobject.ReconnectLDAPObject now uses internal class-wide lock for serializing reconnects
Method signature of ~ldap.ldapobject.ReconnectLDAPObject.reconnect changed to be able to call it with separate retry_max and retry_delay values
Modules/
Added support for retrieving negotiated TLS version/cipher with ~ldap.ldapobject.LDAPObject.get_option with the help of upcoming OpenLDAP libs
~ldap.ldapobject.ReconnectLDAPObject._apply_last_bind now sends anonymous simple bind request even if the calling application did not to provoke ldap.
Changes since 2.4.12:
Lib/
~ldap.ldapobject.ReconnectLDAPObject._apply_last_bind now sends anonymous simple bind request even if the calling application did not to provoke ldap.SERVER_DOWN in method ~ldap.ldapobject.ReconnectLDAPObject.reconnect
~ldap.ldapobject.ReconnectLDAPObject.reconnect now also catches ldap.TIMEOUT exception after reconnection attempt
Several other fixes for ~ldap.ldapobject.ReconnectLDAPObject (thanks to Jonathan Giannuzzi)
Truly optional import of pyasn1.error.PyAsn1Error exception which should not fail anymore if pyasn1 is not installed
Changes since 2.4.11:
Lib/
Truly optional import of pyasn1.error.PyAsn1Error exception which should not fail anymore if pyasn1 is not installed
~ldap.ldapobject.ReconnectLDAPObject.reconnect now preserves order of options set with ~ldap.ldapobject.LDAPObject.set_option before. This is needed e
Changes since 2.4.9:
Lib/
~ldap.ldapobject.ReconnectLDAPObject.reconnect now preserves order of options set with ~ldap.ldapobject.LDAPObject.set_option before. This is needed e.g. for setting connection-specific TLS options.
Demo/
Better version of Demo/pyasn1/syncrepl.py (thanks to Ben Cooksley)
~ldap.ldapobject.ReconnectLDAPObject.reconnect now does kind of an internal locking to pause other threads while reconnecting is pending.
Changes since 2.4.8:
Lib/
~ldap.ldapobject.ReconnectLDAPObject.reconnect now does kind of an internal locking to pause other threads while reconnecting is pending.
Changes to bind- and StartTLS-related operation methods of class ~ldap.ldapobject.ReconnectLDAPObject for more robustness
New constant ldap.OPT_NAMES_DICT contains mapping from integer to variable name for all option-related constants.
Fixed overzealous check for non-unique NAMEs in ~ldap.schema.subentry.SubSchema.__init__
Changes since 2.4.7:
Lib/
Fixed overzealous check for non-unique NAMEs in ~ldap.schema.subentry.SubSchema.__init__
Fixed typos in control decoding method ~ldap.controls.simple.OctetStringInteger.decodeControlValue
Added experimental support for draft-vchu-ldap-pwd-policy
Separate classes for request/response controls for RFC 3829
Changes since 2.4.6:
Lib/
Separate classes for request/response controls for RFC 3829
Fixed ~ldap.schema.subentry.SubSchema.attribute_types to also eliminate double attribute types in MAY clause of DIT content rule
Modules/
Fixed memory leak (thanks to David Malcolm)
ldap.controls.ppolicy: Another fix for decoding the password policy response control
Changes since 2.4.5:
Lib/
ldap.controls.ppolicy: Another fix for decoding the password policy response control
defines for SASL and SSL in setup.cfg to be more friendly to Python setup tools (easy_install)
Changes since 2.4.4:
Installation:
defines for SASL and SSL in setup.cfg to be more friendly to Python setup tools (easy_install)
Lib/
Fixed typo in ldap.functions._ldap_function_call which always released ldap._ldap_module_lock instead of local lock
ldap.controls.ppolicy: Fixed decoding the password policy response control
Demo/
Demo script for ldap.controls.ppolicy
Format intermediate messages as three-element tuple s instead of 4-tuples to match the format of other response messages. (thanks to Chris Mikkelson)
Changes since 2.4.3:
Modules/
Format intermediate messages as three-element tuple s instead of 4-tuples to match the format of other response messages. (thanks to Chris Mikkelson)
Fixes for memory leaks (thanks to Chris Mikkelson)
Lib/
New experimental(!) sub-module ldap.syncrepl implementing syncrepl consumer (see RFC 4533, thanks to Chris Mikkelson)
Doc/
Cleaned up RST files
Added missing classes
Mostly corrected/updated __doc__ strings
Changes since 2.4.2:
Lib/
Mostly corrected/updated __doc__ strings
Doc/
Corrected RST files
Added missing modules, functions, classes, methods, parameters etc. at least as auto-generated doc
pprint.pformat is now used when writing method/function arguments to the trace log
Changes since 2.4.1:
Lib/
Logging:
pprint.pformat is now used when writing method/function arguments to the trace log
ldap.schema.subentry:
~ldap.schema.subentry.SubSchema.__init__ now has new keyword argument check_uniqueness which enables checking whether OIDs are unique in the subschema subentry
Code-cleaning: consistent use of ~ldap.schema.subentry.SubSchema.getoid instead of accessing ~ldap.schema.subentry.SubSchema.name2oid directly.
~ldap.schema.subentry.SubSchema.getoid now has keyword argument raise_keyerror=0 and raises KeyError with an appropriate description.
New LDAP option ldap.OPT_X_TLS_PACKAGE available in OpenLDAP 2.4.26+ to determine the name of the SSL/TLS package OpenLDAP was built with
Changes since 2.4.0:
Modules:
New LDAP option ldap.OPT_X_TLS_PACKAGE available in OpenLDAP 2.4.26+ to determine the name of the SSL/TLS package OpenLDAP was built with
Lib/
ldap.modlist.modifyModlist: New keyword argument case_ignore_attr_types used to define attribute types for which comparison of old and new values should be case-insensitive
Minor changes to which data is sent to debug output for various trace levels
Now tag [1] is used in ldap.extop.dds.RefreshResponse in compliance with RFC 2589 (fix available for OpenLDAP ITS#6886)
New sub-module ldap.controls.sessiontrack implements request control as described in draft-wahl-ldap-session (needs pyasn1_modules)
One column per quarter.