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. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Python-LDAP-dev mailing list Python-LDAP-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/python-ldap-dev