openbsd-ports/databases/py-ldap/patches/patch-Modules_ldapmodule_c
sturm 5564337ce6 Initial import of py-ldap 2.0.0pre14
python-ldap provides an object-oriented API to access LDAP
directory servers from Python programs. Mainly it wraps the
OpenLDAP 2.x libs for that purpose.

Additionally the package contains modules for other LDAP-related
stuff (e.g. processing LDIF, LDAPURLs, LDAPv3 sub-schema, etc.).

Not included: Direct BER support

WWW: http://python-ldap.sourceforge.net/

from Marc Balmer <marc@msys.ch>
2003-11-01 15:24:06 +00:00

24 lines
510 B
Plaintext

--- Modules/ldapmodule.c.orig Tue Jul 2 20:00:00 2002
+++ Modules/ldapmodule.c Tue Sep 23 06:44:49 2003
@@ -13,6 +13,8 @@
#include "LDAPObject.h"
+#include <dlfcn.h>
+
DL_EXPORT(void) init_ldap(void);
/* dummy module methods */
@@ -27,6 +29,11 @@
init_ldap()
{
PyObject *m, *d;
+
+ /* Force loading of LDAP and LBER libraries */
+
+ dlopen("liblber.so", DL_LAZY);
+ dlopen("libldap_r.so", DL_LAZY);
#if defined(WIN32) || defined(__CYGWIN__)
/* See http://www.python.org/doc/FAQ.html#3.24 */