Add msgid to info dict created by LDAPerror.

Chris Dukes pakraticus at
Thu Oct 22 16:08:21 CEST 2009

While rewriting a nasty perl LDAP sync program in python I encountered one
quirk with python-ldap that made my life a bit difficult.  When doing
asynchronous searches an ldap exception in result3() doesn't include 'msgid'
in the info dict.  Since I'm tracking pending work by the msgid of the
search, having the msgid in the exception is very useful for removing work

Here is a patch to the 'C' code of python-ldap to provide msgid.

Chris Dukes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LDAPerror_msgid.diff
Type: text/x-diff
Size: 10150 bytes
Desc: not available
URL: <>

More information about the python-ldap mailing list