|
From: Jens V. <je...@zo...> - 2002-01-04 19:48:54
|
this is only "half" the information needed to solve the problem. above = the=20 traceback it should tell you what the attribute error is on. jens P.S.: as the author of the LDAPUserFolder product i can't make any=20 guarantees about zope 2.5 compatibility until there is a released final=20= version of zope 2.5. if you are in doubt you should test the same=20 situation using zope 2.4.3 On Friday, January 4, 2002, at 01:46 , Peeyush Garg 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=20 > 76, > in render > (Object: cur_vals=3D"getUserDetails(encoded_dn=3Duser_dn, > format=3D'dictionary')") > File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_In.py, line=20= > 695, > in renderwob > (Object: getLDAPSchema()) > File /home/zope/zope250b2/lib/python/DocumentTemplate/DT_Let.py, = line=20 > 75, > in render > (Object: sk=3D"_['sequence-key']" > si=3D"_['sequence-item']" > cur_val=3D"_.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=20 > 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=F6der" <mi...@st...> > To: "Peeyush Garg" <pee...@ka...> > Cc: <pyt...@li...> > 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. > > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev |