From: Joe L. <jl...@op...> - 2001-05-31 00:21:42
|
the attrs could be a problem. It may be one area of the mozilla API that = I didn't "expose" via SWIG. Any comments Sascha? I've simply used Sascha's makefile and the like so far, but the tests and such will definitely need to be altered to confirm the ldap and its v3 extensions are working. Its a work in progress, and my without a network :(. I'll try and put together some tests. Michael, if you have any specific tests that you'd like to make sure they work, simply send them m= y way and I'll try and put them into the test suite. The current test suite from Sascha expects openldap 1.x and its config/schema style. On Wed, 30 May 2001, Michael Str=F6der wrote: > Joe Little wrote: > > > > My only concern is your libraries. do an ldd on the ldapcmodule (ther= e is > > also the lbermodule.so). Make sure it sees the same ldap libraries yo= u > > built it with. > > Off course I already did this every time. Seemed ok to me: > > > ldd ldapcmodule.so > /lib/libNoVersion.so.1 =3D> /lib/libNoVersion.so.1 > (0x40015000) > libldap50.so =3D> > /home/michael/src/ldapcsdk50/lib/libldap50.so (0x40017000) > libc.so.6 =3D> /lib/libc.so.6 (0x40047000) > /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x80000000) > > ldd lbermodule.so > /lib/libNoVersion.so.1 =3D> /lib/libNoVersion.so.1 > (0x4000a000) > libldap50.so =3D> > /home/michael/src/ldapcsdk50/lib/libldap50.so (0x4000c000) > libc.so.6 =3D> /lib/libc.so.6 (0x4003c000) > /lib/ld-linux.so.2 =3D> /lib/ld-linux.so.2 (0x80000000) > > > 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. > > This did not work. I took a look at the source to figure out how it > works and tried to track things down by typing the actions manually. > > Now please tell me what I did wrong in this transcript? It uses > ldapc.open() to make the connection. That's definitely not problem. > Maybe something's fishy with building "attrs"? > > 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? > > Ciao, Michael. > > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > http://lists.sourceforge.net/lists/listinfo/python-ldap-dev > |