From: Joe L. <jl...@op...> - 2001-05-30 18:34:27
|
My only concern is your libraries. do an ldd on the ldapcmodule (there is also the lbermodule.so). Make sure it sees the same ldap libraries you built it with. I'd then use the test ldapsearch in Sacha's test directory (with the aforementioned changed in ldap.open instead of ldap.LDAP for opening a connection. On Wed, 30 May 2001, Michael Str=F6der wrote: > HI! > > I've built the swig-ldap with Joe's ldap.i and lber.i. After > modifications to lber.i import works now. But I still have some > problems. > > Note: The module is built as ldapcmodule.so on my system. > > Python 2.1 (#8, Apr 20 2001, 19:22:23) > [GCC 2.95.2 19991024 (release)] on linux2 > Type "copyright", "credits" or "license" for more information. > >>> import ldapc > >>> attrs=3Dldapc.string_array(1) > >>> ldapc.string_set(attrs,0,'objectClass') > 'objectClass' > >>> l=3Dldapc.open('localhost',389) > >>> resPtr=3Dldapc.makeLDAPMessagePtrPtr() > >>> status=3Dldapc.search_s(l,'O=3DMICHAELS',ldapc.SCOPE_BASE, > '(objectClass=3D*)',attrs,0,resPtr) > Segmentation fault > > Am I doing something wrong? > > I have to admit that these kind of error messages endorse my > prejudices about SWIG-produced modules... > > Ciao, Michael. > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > http://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |