From: <mi...@st...> - 2008-01-29 08:48:57
|
Yeargan Yancey wrote: > > I am trying to use the asynchronous LDAP polling feature and have a > question about what appears to be a timing issue. When I run the code > below, I find that I must insert a sleep() before entering the while > loop or I get a ValueError exception. > [..] > File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 415, > in result3 > rtype, rdata, rmsgid, serverctrls = > self._ldap_call(self._l.result3,msgid,all,timeout) > ValueError: need more than 3 values to unpack Hmm, this should never happen. I guess it's caused by _ldap.result3() returning NULL for the situation where no result was received at all. I will look into it. In the meantime try if the patch to LDAPObject.py attached solves your problem. Ciao, Michael. |