LDAP Polling

Michael Ströder michael at stroeder.com
Tue Jan 29 23:41:28 CET 2008


Yeargan Yancey wrote:
> Hmm. That only moved the exception.
> 
>    File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line  
> 421, in result3
>      rtype, rdata, rmsgid, serverctrls = ldap_result
> ValueError: need more than 3 values to unpack
> 
> I put the statement above into a try..except block and checked the  
> value when the exception occurs. This line
> 
> ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout)
> 
> assigns (None,None,None) to ldap_result, a 3-tuple instead of a 4-tuple.

Hmm, which version of python-ldap is this? Did you install from source?

Looking at function l_ldap_result3() in Modules/LDAPObject.c I can't 
figure out why a 3-tuple is returned. I did not write this code though...

Ciao, Michael.



More information about the python-ldap mailing list