Installation Problem

Joe Little jlittle at open-it.org
Fri Jan 4 19:56:03 CET 2002


This definitely looks like something specific to Zope and this beta release
of said product. You likely want to ask lists specific to Zope. There are no
traces or exceptions coming from access to the python-ldap modules, and so I
would suggest using a released Zope product (2.4.x) instead of the 2.5 beta
series.

On 1/4/02 10:46 AM, "Peeyush Garg" <peeyushg at karna.com> wrote:

> Hi,
> 
> Let me explain the problem in more detail because I do not have a 'direct'
> traceback. I have Zope(2.5.0b2) and LDAP(2.0.18) server installed on the
> same Linux machine. If I try to access LDAP server from Zope it says
> 'connection settings not ok....'. The interesting part is that when I
> install LDAPUserFolder on another installation of Zope(2.4.3) on a WinNT(4.1
> workstation) machine, it connects beautifully with the same settings.
> 
> Following is a traceback that I get when I try to search for users(without
> even being connected, just for the purpose of getting some traceback):
> 
> Traceback (innermost last):
> File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 151, in
> publish_module
> File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 115, in
> publish
> File /home/zope/zope250b2/lib/python/Zope/__init__.py, line 158, in
> zpublisher_exception_hook
>   (Object: acl_users)
> File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 99, in
> publish
> File /home/zope/zope250b2/lib/python/ZPublisher/mapply.py, line 88, in
> mapply
>   (Object: manage_userrecords)
> File /home/zope/zope250b2/lib/python/ZPublisher/Publish.py, line 40, in
> call_object
>   (Object: manage_userrecords)
> File /home/zope/zope250b2/lib/python/Shared/DC/Scripts/Bindings.py, line
> 252, in __call__
>   (Object: manage_userrecords)
> File /home/zope/zope250b2/lib/python/Shared/DC/Scripts/Bindings.py, line
> 283, in _bindAndExec
>   (Object: manage_userrecords)
> File /home/zope/zope250b2/lib/python/App/special_dtml.py, line 172, in
> _exec
>   (Object: manage_userrecords)
> File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Let.py, line 76,
> in render
>   (Object: cur_vals="getUserDetails(encoded_dn=user_dn,
> format='dictionary')")
> File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_In.py, line 695,
> in renderwob
>   (Object: getLDAPSchema())
> File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Let.py, line 75,
> in render
>   (Object: sk="_['sequence-key']"
>             si="_['sequence-item']"
>             cur_val="_.string.join( cur_vals.get( sk, '' ) )")
> File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Util.py, line
> 159, in eval
>   (Object: _.string.join( cur_vals.get( sk, '' ) ))
>   (Info: sk)
> File <string>, line 0, in ?
> AttributeError: (see above)
> 
> 
> Installing on WinNT did take me some half a day to make it working (that was
> my first experience with LDAP) but getting to connect from the same Linux
> machine has taken me 2 days without much luck. Any help is appreciated.
> 
> Thanks,
> Peeyush.
> ----- Original Message -----
> From: "Michael Ströder" <michael at stroeder.com>
> To: "Peeyush Garg" <peeyushg at karna.com>
> Cc: <python-ldap-dev at lists.sourceforge.net>
> Sent: Friday, January 04, 2002 4:38 AM
> Subject: Re: Installation Problem
> 
> 
>> Peeyush Garg wrote:
>>> 
>>> warning: build_py: file Lib/ldap.py (for module ldap) not found
>> 
>> You can ignore that.
>> 
>>> i could not find ldap.py even in current CVS.
>> 
>> It has been substituted by Lib/ldap/*.py.
>> 
>>> I cannot get to connect to LDAP server. Is this problem because of
>>> the above file??
>> 
>> No. Any traceback you can send us? Note that _ldap.open() does not
>> work anymore. Use ldap.open() instead. I've updated the README.
>> 
>> Ciao, Michael.
> 
> 
> 


More information about the python-ldap mailing list