latest ldap.i UPDATE!
jlittle at open-it.org
Wed May 30 20:29:25 CEST 2001
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
On Wed, 30 May 2001, Michael Ströder wrote:
> 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
> 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=ldapc.string_array(1)
> >>> ldapc.string_set(attrs,0,'objectClass')
> >>> l=ldapc.open('localhost',389)
> >>> resPtr=ldapc.makeLDAPMessagePtrPtr()
> >>> status=ldapc.search_s(l,'O=MICHAELS',ldapc.SCOPE_BASE,
> 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.
More information about the python-ldap