[python3-ldap] python3-ldap 0.9.5.1 is released

python3ldap python3ldap at gmail.com
Sun Aug 3 02:53:27 CEST 2014


Hello everybody,
I've released the 0.9.5.1 version of python3-ldap.
This is the changelog:
* 0.9.5.1 2014.08.02
    - getaddrinfo called only once
    - real_server machinery removed - messageId is now global and
monotonic for the whole library
    - attributes are returned formatted if schema is read and
check_names = True, removed checked_attributes
    - bind result is populated again when successful (was removed in 0.9.2.1)
    - exception is now raised if you receive multiple extended
response to a single extended request. This is not allowed by RFC 4511

There is a big change from 0.9.5, the "checked_attributes" key of
search result entry is gone. Now if the schema is read (with get_info
= GET_SCHEMA or get_info = GET_ALL_INFO) and the checked_names
parameter is set to True (default) the attributes values are formatted
as specified in the schema and are returned in the "attributes" key of
the search result entry, Single value attributes are returned
directly, and not a list of a single element. If you use Python 2 you
should get the attributes properly encoded as unicode string.

This could lead to some compatibility problems with your code, if you
already read the schema, because now attributes defined as single
value are no longer a list of one element. To mantain compatibility
with the previous version set the checked_names parameter to False.

I've also removed the code that kept track of each messageId counter
for each "real" server because this doesn't fit well with ipv6. Now
there is a single message counter (for internal messageId tagging).
This means that in case you have concurrent multiple server
connections the server will not receive a sequential messageId
counter, but there will be "gaps" in the messageId. This should not be
an issue because this is allowed by RFC4511. Anyway let me know if you
have troubles with message numbering.

Bye,
Giovanni


More information about the python3-ldap mailing list