python-ldap in ZOPE (again)
Hi, Few days ago I reported a problem with using python-ldap from zope. Now I set up the ZEO enironment to trace the problem and still have no idea why it is not working. Here is description... external method in zope: #t1.py def test(): i_ldap = ldap.initialize('ldap://address_to_ldap_server') i_ldap.simple_bind_s('','') return i_ldap The LDAP server is up and working. Zope gets segfault when trying to run this extmethod (exactly binding to server). Test from python session connected to ZEO server... 'h' is an external method object in ZODB... e.g.: h.getFuncCode().co_varnames -> ('i_ldap') Running this in pdb effects in: -> pdb.run(h()) Segmentation fault This is en effect of binding to LDAP (simple_bind_s('','')). Now I have no idea what I'm doing wrong. Any clues? Current setup: Zope 2.7b2, python2.3-ldap (v. 1.9.999.pre13-1), python v. 2.3.2-2 under Debian. TIA, -- Adam Szpakowski Silesian University of Technology - Institute of Physics Department of Optoelectronic e-mail: worf@optics.polsl.gliwice.pl
Maybe a problem of the Python bindings? Use gdb to track it down. -aj --On Sonntag, 26. Oktober 2003 21:42 Uhr +0100 Adam Szpakowski <worf@optics.polsl.gliwice.pl> wrote:
Hi,
Few days ago I reported a problem with using python-ldap from zope. Now I set up the ZEO enironment to trace the problem and still have no idea why it is not working.
Here is description... external method in zope:
# t1.py def test(): i_ldap = ldap.initialize('ldap://address_to_ldap_server') i_ldap.simple_bind_s('','') return i_ldap
The LDAP server is up and working. Zope gets segfault when trying to run this extmethod (exactly binding to server). Test from python session connected to ZEO server... 'h' is an external method object in ZODB... e.g.:
h.getFuncCode().co_varnames -> ('i_ldap')
Running this in pdb effects in: -> pdb.run(h()) Segmentation fault
This is en effect of binding to LDAP (simple_bind_s('','')). Now I have no idea what I'm doing wrong. Any clues? Current setup: Zope 2.7b2, python2.3-ldap (v. 1.9.999.pre13-1), python v. 2.3.2-2 under Debian.
TIA,
Andreas Jung wrote:
Maybe a problem of the Python bindings? Use gdb to track it down.
I'm almost sure that everything is ok with python. E.g. my scripts wrote in python populating LDAP directory on the server works fine. Also ldap related products (such as LDAPUserFolder) works fine. There must be some important step in seting up ldap connection in Zope which is messing up. But what step? Adam -- Adam Szpakowski Silesian University of Technology - Institute of Physics Department of Optoelectronic e-mail: worf@optics.polsl.gliwice.pl
participants (2)
-
Adam Szpakowski -
Andreas Jung