Re: LDAP Polling

2008-01-29 Thread Michael Ströder
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/pyt

Re: LDAP Polling

2008-01-29 Thread Yeargan Yancey
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

Re: LDAP Polling

2008-01-29 Thread Michael Ströder
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..

RE: LDAP Polling

2008-01-29 Thread Yeargan, Yancey
> 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. > Not from source. This version came with SuSE Linux

Re: LDAP Polling

2008-01-29 Thread Michael Ströder
Yeargan, Yancey wrote: > > Not from source. This version came > with SuSE Linux Enterprise Server 10. What does rpm -q python-ldap say? Ciao, Michael. - This SF.net email is sponsored by: Microsoft Defy all challenges. Micr

Re: LDAP Polling

2008-01-29 Thread Michael Ströder
Yeargan, Yancey wrote: > > Can you point me to code for "self._l.result3"? Grab the source. Best would be from CVS: http://sourceforge.net/cvs/?group_id=2072 Look at Modules/LDAPObject.c into function l_ldap_result3() (starting at line 940). Ciao, Michael. ---

Re: LDAP Polling

2008-01-29 Thread Yeargan Yancey
python-ldap-2.0.11-14.2 On Jan 29, 2008, at 4:59 PM, Michael Ströder wrote: > Yeargan, Yancey wrote: >> >> Not from source. This version came >> with SuSE Linux Enterprise Server 10. > > What does rpm -q python-ldap say? > > Ciao, Michael. -