pypi / python-ldap
python-ldap
What changed in python-ldap 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.
3 breaking2 security7 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initpython-ldap 312 changes
Breaking changes 3
Server-sent invalid UTF-8 is handled by throwing an error.
An fd provided to set up a new LDAPObject is owned and managed by the module; callers should not close it themselves.
Building now requires setuptools>=61; older environments fail with a clear resolver error instead of producing broken sdist metadata.
Security 2
Correctly escapes output when emitting an HTML anchor.
The attrlist parameter is checked before use, avoiding memory errors caused by type mismatches.
Fixes and other changes 7
VLV control now honours the contextID passed in.
Now handles an empty string correctly.
Memory and reference leaks at error-handling time have been plugged.
Use OPT_RESTART when handling EINTR.
Errors involving requestName and requestValue are fixed.
The module now actively closes sockets when finished with them.
The module now actively closes sockets when finished with them.