Experiments with pyasn1 and preread control

Michael Ströder michael at stroeder.com
Wed Jun 6 14:16:11 CEST 2007


Andreas Hasenack wrote:
> I have been having fun with controls. Today I tried to use the Pre-Read
> control together with the modify+increment extension, so that
> modify+increment becomes actually useful.

Thanks for sharing your experiences.

> I first added the encoding part to the ldap.so module, but later got a
> response from the pyasn1 mailing list and tried again in pure python.

Saw your postings there. I'm also lurking on the pyasn1-users mailing
list. The author seems to be quite responsive.

> The decoding part will probably be more difficult... As the control
> response is a SearchResultEntry which is a bit more complex to decode.

How about exposing the function LDAPmessage_to_python() in message.c.
It's used also to parse search results invoked by l_ldap_result3() in

Ciao, Michael.

More information about the python-ldap mailing list