Re: problem using python-ldap under fcgi
Michael Ströder [EMAIL PROTECTED] writes: But let's look at the blog entry which convinced you to try patching python-ldap (see http://www.notes.xythian.net/2007/10/24/python-cdb-032-52ubuntu2-with-python-25-causes-double-free-corruption-crash-on-dealloc/): Some other searching suggests that python-cdb’s use of PyMem_DEL is no longer recommended. That's pretty unprecise, not even a single URL. But if somebody can add more detailed information to this it could be helpful to dive into this. IMO an admirable goal of python-ldap is not to fall back behind what's considered current best practice when writing extension modules for CPython. I think the blog writer was bitten by http://bugs.debian.org/468993. In Python 2.5, PyMem_DEL and PyObject_Del are no longer interchangeable; memory allocated by PyMem_NEW needs to be deallocated by PyMem_DEL, and likewise for PyObject_New and PyObject_Del. A similar (automated) report was filed for python-ldap, and I've verified that it doesn't apply -- http://bugs.debian.org/468995. Cheers, Matej - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Python-LDAP-dev mailing list Python-LDAP-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
Re: SunStudio compile
Michael Ströder [EMAIL PROTECTED] writes: Matej Vela wrote: The type checking seems to be a bit overzealous. Try changing line 108 of Modules/options.c from LDAPControl_List_DEL(ptr); to LDAPControl_List_DEL((LDAPControl**) ptr); Matej, do you think we should change this in general? Yes, can't hurt (though most compilers are fine with both). Cheers, Matej - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Python-LDAP-dev mailing list Python-LDAP-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
Re: SunStudio compile
Anil [EMAIL PROTECTED] writes: Thanks, that worked! I am able to compile it now, but if I enable sasl, it also fails: Modules/LDAPObject.c, line 568: Warning: String literal converted to char* in formal argument format in call to _PyObject_CallMethod_SizeT(_object*, char*, char*, ...). Modules/LDAPObject.c, line 614: Error: Cannot use void* to initialize sasl_interact*. Modules/LDAPObject.c, line 615: Error: Cannot use void* to initialize _object*. Modules/LDAPObject.c, line 689: Warning (Anachronism): Formal argument proc of type extern C int(*)(ldap*,unsigned,void*,void*) in call to ldap_sasl_interactive_bind_s(ldap*, const char*, const char*, ldapcontrol**, ldapcontrol**, unsigned, extern C int(*)(ldap*,unsigned,void*,void*), void*) is being passed int(*)(ldap*,unsigned,void*,void*). Sounds like the same thing. Yup. If you haven't already, try replacing lines 614 and 615 sasl_interact_t *interact = in; PyObject *SASLObject = defaults; with sasl_interact_t *interact = (sasl_interact_t *) in; PyObject *SASLObject = (PyObject *) defaults; (Sorry for the late reply.) Cheers, Matej - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Python-LDAP-dev mailing list Python-LDAP-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
Re: SunStudio compile
Anil [EMAIL PROTECTED] writes: I am trying to compile python ldap with SunStudio, I get this error. Any idea? [...] Modules/options.c, line 108: Error: Formal argument 1 of type ldapcontrol** in call to LDAPControl_List_DEL(ldapcontrol**) is being passed void*. The type checking seems to be a bit overzealous. Try changing line 108 of Modules/options.c from LDAPControl_List_DEL(ptr); to LDAPControl_List_DEL((LDAPControl**) ptr); Cheers, Matej - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Python-LDAP-dev mailing list Python-LDAP-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
Re: Error while building
Sig [EMAIL PROTECTED] writes: I can't build python-ldap-2.3.5. What should I do ? My steps: - downloaded the 2.3.5 tarball from sourceforge - tar xvzf ... - python setup.py build - The error and output messages are attached to this email. My setup: - Python 2.5.2 - libldap-2.4-2 (ubuntu package version = 2.4.9-0ubuntu0.8.04.1, same for slapd) - Ubuntu hardy Tell me if you need any other piece of info. Looks like you're missing libldap2-dev. Please run # apt-get install build-essential libldap2-dev libsasl2-dev python-dev [...] By the way #2 : there is no web archive of this list ? See http://sf.net/mailarchive/forum.php?forum_name=python-ldap-dev. Cheers, Matej - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Python-LDAP-dev mailing list Python-LDAP-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
Re: Who is using python-ldap with Python 1.5.x and 2.0-2.2?
Michael Ströder [EMAIL PROTECTED] writes: And how about OpenLDAP libs and gnutls? Yes, I'm nagging here, but because of very good reasons. I don't see it as nagging at all, you're perfectly right not to support modifications you're not comfortable with. I hope we provide a reasonable level of support ourselves, both on this list and through bugs.debian.org. To provide some context, OpenLDAP 2.1 client libraries were not quite as ancient at the time the current Debian release was frozen in late 2006. A newer version didn't make it in time due to problems with symbol versioning -- because of the large number of libraries and plugins linked with libldap, a binary could end up simultaneously using code compiled with different LDAP ABIs, and promptly crash. The next Debian release (due out later this year) will use libldap 2.4 with versioned symbols. I'm not sure which python-ldap package you were looking at, but the one we released with, 2.2.0-3, has a 19-line patch for OpenLDAP 2.1. Later development versions used a 130-line patch, but none of these were released for production use. The patch is a currently a no-op, and I intend to fully remove it before we release. As for GnuTLS, the main reason it's used is the unfortunate incompatibility between the OpenSSL license and the GPL [1]. I'm not aware of stability or security issues in current versions. [1] http://www.gnome.org/~markmc/openssl-and-the-gpl.html Cheers, Matej - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Python-LDAP-dev mailing list Python-LDAP-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/python-ldap-dev
Re: ldap controls
Stefan Gohmann [EMAIL PROTECTED] writes: Am Donnerstag, 20. September 2007 10:57 schrieb Michael Ströder: In the source distribution: Demo/page_control.py Demo/ldapcontrols.py Demo/matchedvalues.py Ah, these files are not in the debian package. Thanks. Actually, they're in the python-ldap-doc package, in /usr/share/doc/python-ldap-doc/examples/. Cheers, Matej - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Python-LDAP-dev mailing list Python-LDAP-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/python-ldap-dev