The package version is too old to work with relatively modern Twisted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ldaptor (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Summary: the package ldaptor is shipping version 0.0.43, which is from ~2006 (14 years old already). The twisted version from the repos is 16.0.0 (~2016).
The release of Ubuntu I am using is Ubuntu 16.04.6 LTS.
The version of the package I am using is 0.0.43+debian1-7.
What I've expected to happen:
1. Installed the latest available python-ldaptor and latest available python-twisted-core packages (it's installed automatically as a dependency).
2. Tried the example server and client code from https:/
3. Example client and server interacts properly, without errors
What happened instead:
2020-02-07 14:15:50+0000 [-] Log opened.
2020-02-07 14:15:50+0000 [-] LDAPServerFactory starting on 8080
2020-02-07 14:15:50+0000 [-] Starting factory <__main_
2020-02-07 14:16:10+0000 [LDAPServer,
Traceback (most recent call last):
File "/usr/lib/
return callWithContext
File "/usr/lib/
return context.
File "/usr/lib/
return self.currentCon
File "/usr/lib/
return func(*args,**kw)
--- <exception caught here> ---
File "/usr/lib/
why = selectable.doRead()
File "/usr/lib/
return self._dataRecei
File "/usr/lib/
rval = self.protocol.
File "/usr/lib/
File "/usr/lib/
Steps to reproduce:
1. Run apt-get install python-ldaptor
2. Download the example server.py and client.py (or copy-paste them from https:/
3. Run python2 server.py
4. Run python2 client.py
Additional information:
As far as I can see the package ldaptor is 0.0.43, which is from 2006 (14 years old already, info taken from https:/
As for now, ldaptor uses log.msg() instead of log.debug(), which is simply not available in modern twisted, as can be seen in the same code part from the modern version of ldaptor: https:/
So, please, update the ldaptor to the modern one. Even the examples are not working with such an old version now.