[Zope] Zope 2.5.0 + Python 2.1.2 + LDAP

Jens Vagelpohl jens@zope.com
Tue, 19 Feb 2002 13:28:14 -0500


thierry,

i don't think i will be able to replicate your setup at all. i don't use 
debian so i don't have a clue what those packages contain. i always 
download the source code for the full OpenLDAP server as well as the 
source for python-ldap and python itself and then compile it.

oh by the way, i would guess there is a reason when packages you download 
carry the label "TESTING" as opposed to "STABLE"...

just for a record, here are some known working combinations (using RH 7.2)
, assuming you download the source code and compile yourself::

python 2.1.1 or 2.1.2
OpenLDAP 2.0.18 and over (to be used with python-ldap 2.x)
OpenLDAP 2.0.6 - 2.0.17 (for python-ldap 1.10alpha3)
python-ldap 2.0.0pre3 and higher
python-ldap 1.10alpha3

jens


On Tuesday, February 19, 2002, at 11:58 , Thierry Florac wrote:

>   Hi...
>
> On Tue, 2002-02-19 at 16:07, Jens Vagelpohl wrote:
>> hi thierry,
>>
>> i am not aware of any such problems. as you can see from the tracebacks,
>> the errors originate in the python-ldap libraries. i suggest you try a
>> later version of python-ldap. i have used 2.0.0pre3 and 2.0.0pre4
>> successfully on python 2.1.2 against openldap 2.0.21 on a redhat 7.2
>> system.
>
> I've just tried to upgrade to python-ldap-2.0.0pre4, as you suggested
> me, rebuilding new packages compiled from source.
> Now, when I want to create a new "LDAPUserFolder", Zope is crashing
> immediately, without any time to display any error message (just
> "Connection refused by server" on Netscape, until Zope restart is
> complete).
> I've tried to run Zope in debug mode, but the only result is :
>
> "  2002-02-19T17:52:18 ERROR(200) zdaemon zdaemon: Tue Feb 19 18:52:18
> 2002: Aiieee! 3942 exited with error code: 11  "
>
> Any idea ??
>
>
>> as a side note, you should only use the LDAPUserFolder on a 2.5.0 system.
>> the LDAPLoginAdapter/LDAPUserManager are no longer officially supported 
>> by
>> me.
>
> I didn't tried to use these Products since I upgraded to Zope-2.5...
>
>   Thanks ??
>   Thierry
>
>
>
>> On Tuesday, February 19, 2002, at 09:42 , Thierry Florac wrote:
>>
>>>
>>>   Hi !!
>>>
>>> I'm currently using :
>>>  - Zope-2.5.0,
>>>  - Python-2.1.2
>>>  - libldap2-2.0.23
>>>  - python-ldap-1.9.999.cvs.20011231
>>>
>>> All these packages are installed on a Debian system just upgraded from
>>> 'Stable' to 'Testing'.
>>>
>>> I'm trying to use several LDAP user managers (LDAPUserFolder,...) or
>>> LDAP query tools but as soon as I try to execute any query, I receive an
>>> error message :
>>>
>>>    "python:
>>> /usr/local/src/libopenldap/openldap2-2.0.23/libraries/libldap/references.
>>> c:26: ldap_first_reference: Assertion `( ( ld )->ld_options.ldo_valid =
>>> =
>>> 0x2 )' failed."
>>>
>>> or
>>>
>>>   "python:
>>> /usr/local/src/libopenldap/openldap2-2.0.23/libraries/libldap/error.c:220:
>>>  ldap_parse_result: Assertion `( ( ld )->ld_options.ldo_valid == 0x2 )'
>>> failed."
>>>
>>> These errors make Zope restart every time, so these LDAP products are
>>> unusable... ; these errors didn't exist with old releases of Zope
>>> (2.3.3) and Python (1.5.2).
>>>
>>> I've tried to execute a few LDAP queries from within Python interpreter,
>>> and they seem to be OK so I think Python-ldap is correctly installed.
>>>
>>> Any idea ??
>>>
>>>   Thanks for any help,
>>>   Thierry
>>>
>>> --
>>>   Linux every day, keeps Dr Watson away...
>>>   http://gpc.sourceforge.net
>>>
>>>
>>> _______________________________________________
>>> Zope maillist  -  Zope@zope.org
>>> http://lists.zope.org/mailman/listinfo/zope
>>> **   No cross posts or HTML encoding!  **
>>> (Related lists -
>>>  http://lists.zope.org/mailman/listinfo/zope-announce
>>>  http://lists.zope.org/mailman/listinfo/zope-dev )
>>
>>
>> _______________________________________________
>> Zope maillist  -  Zope@zope.org
>> http://lists.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists -
>>  http://lists.zope.org/mailman/listinfo/zope-announce
>>  http://lists.zope.org/mailman/listinfo/zope-dev )
>>
> --
>   Linux every day, keeps Dr Watson away...
>   http://gpc.sourceforge.net
>