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