[python3-ldap] python3-ldap 0.9.0 is out with a lot of new stuff!

python3ldap python3ldap at gmail.com
Fri Mar 21 00:01:37 CET 2014


Hello everybody,
I have made a quite large update to python3-ldap. The main feature is
that the library is  PEP8 compliance now. This means that I had to
change the function and attributes name to follow the naming
convention. You should change your code to the new signatures. I'm
sorry for that. If you don't want you can find the previous Server and
Connection object inthe ldap3.compat package, if you import from that
package your code should keep working.

Another new feature is the rewritten (with sphinx) library
documentation. It's now hosted at
http://pythonhosted.org//python3-ldap. I expanded some paragraph to
better explain the library use.

There is a new 'core' component in the library; ServerPool. It's now
possilbe define a pool of server to use with different pooling
strategies (active, round robin, random). Each time you open the
connection a new server is chosen. This can be helpful if you connect
to multi-replica distributed LDAP servers.

Another feature is the SyncRestartableStrategy. It's similar to the
ReconnectLdap object of python-ldap and can be used with buggy servers
because it retries the operation before giving up. Together with the
ServerPool can be used in long standing application for High
Availability/High Reliability. Thanks to Christoph for requesting this
feature. I'm still working on the ConnectionPool.

I fixed some minor bugs and made the library works on Python 2.6 too.
Thanks to Gary for showing me the problems with 2.6.

This is a big update and I must admit that tests don't cover all the
new feature, so please let me know if there is any problem with the
update. I'll try to fix them as soon as possible.

Anyway I'll keep the previous (0.8.3) non PEP8 compliant version
available on pypi for a while.

This is the changelog:

0.9.0 2014.03.20

PEP8 compliance
added ldap3.compat package with non PEP8-compliant signatures
renamed ldap3.abstraction to ldap3.abstract
moved connection.py, server.py and tls.py files to ldap3.core
fixed SyncWaitRestartableStrategy (thanks to Christoph)
Server Pools

0.8.3 2014.03.08

SyncWaitRestartable strategy
removed forceBind parameter
usage statistics updated with restartable successes/failures counters
and open/closed/wrapped sockets counter

0.8.2 2014.03.04

Added refresh() method to Entry object to read again the attributes
from the Reader
Fixed python 2.6 issues
Fixed test suite for python 2.6


Have fun,
Giovanni


More information about the python3-ldap mailing list