LDAP Polling

Michael Ströder michael at stroeder.com
Tue Jan 29 09:48:31 CET 2008


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valueerror_in_result3.patch
Type: text/x-patch
Size: 1147 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20080129/b3773fa8/attachment.bin>


More information about the python-ldap mailing list