Re: LDAP Polling

2008-01-30 Thread Yeargan Yancey
That did the trick. It must be a bug in the older python-ldap code that Novell distributes with SLES 10. OpenLDAP 2.3.32 is already there, as well as SASL 2.1.21, so building python-ldap was easy. Since my organization has a support contract with Novell, I will open a support request and l

Re: LDAP Polling

2008-01-30 Thread Michael Ströder
Yeargan Yancey wrote: > python-ldap-2.0.11-14.2 Sorry, I'm not keen on supporting this ancient version anymore. This has been released almost two years ago and I'm sure there were bugs in there. Any chance you can build 2.3.1 from source? You can generate a RPM with python setup.py bdist_rpm

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. -

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 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 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: > 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
, 2008, at 2:48 AM, Michael Ströder wrote: > 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

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 "/us

LDAP Polling

2008-01-28 Thread Yeargan Yancey
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. If I sleep for around 0.01 seconds, the