[python-ldap] Struggling to implement persistent search
Michael Ströder
michael at stroeder.com
Wed Apr 13 20:20:14 CEST 2011
Jeroen van Meeuwen (Kolab Systems) wrote:
>
> Sure: http://hosted.kolabsys.com/~vanmeeuwen/persistent_search.py
I see two problems in there:
1. You pass a list to argument resp_ctrl_classes of LDAPObject.result4(). This
is supposed to be a dictionary. You can leave it as None and then the default
registry ldap.controls.KNOWN_RESPONSE_CONTROLS of all imported response
control class will be used.
2. You make an object with psearch.EntryChangeNotificationControl(). But
resp_ctrl_classes only expects classes (as dictionary values).
Ciao, Michael.
More information about the python-ldap
mailing list