Re: Compile error on RHEL 5.3 (x86_64), python-ldap-2.3.10

2009-11-04 Thread Michael Ströder
Zhang Huangbin wrote:
 
 I got below compile error on Red Hat Enterprise Linux 5.3 (x86_64)  
 with python-ldap-2.3.10, but 2.3.8 was compiled and installed success.
 What's wrong with it?
 
 Modules/constants.c:184: error: ‘LDAP_OPT_X_TLS_NEWCTX’ undeclared  

Well, I asked for testing long *before* releasing 2.3.10...
This is because of older OpenLDAP libs. Try the patch below. It's also in HEAD
now.

Ciao, Michael.

Index: Modules/constants.c
===
RCS file: /cvsroot/python-ldap/python-ldap/Modules/constants.c,v
retrieving revision 1.43
diff -u -r1.43 constants.c
--- Modules/constants.c 23 Oct 2009 09:09:37 -  1.43
+++ Modules/constants.c 4 Nov 2009 15:48:04 -
@@ -162,7 +162,9 @@
add_int(d,OPT_URI);
 #ifdef HAVE_TLS
add_int(d,OPT_X_TLS);
+#ifdef LDAP_OPT_X_TLS_NEWCTX
add_int(d,OPT_X_TLS_CTX);
+#endif
add_int(d,OPT_X_TLS_CACERTFILE);
add_int(d,OPT_X_TLS_CACERTDIR);
add_int(d,OPT_X_TLS_CERTFILE);
Index: Modules/options.c
===
RCS file: /cvsroot/python-ldap/python-ldap/Modules/options.c,v
retrieving revision 1.33
diff -u -r1.33 options.c
--- Modules/options.c   23 Oct 2009 09:09:37 -  1.33
+++ Modules/options.c   4 Nov 2009 15:48:04 -
@@ -79,7 +79,9 @@
 #ifdef HAVE_TLS
 case LDAP_OPT_X_TLS:
 case LDAP_OPT_X_TLS_REQUIRE_CERT:
+#ifdef LDAP_OPT_X_TLS_NEWCTX
 case LDAP_OPT_X_TLS_NEWCTX:
+#endif
 #ifdef OPT_X_TLS_PROTOCOL_MIN
 case LDAP_OPT_X_TLS_PROTOCOL_MIN:
 #endif


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Re: connection pooling

2009-11-04 Thread Michael Ströder
Anil wrote:
 I am looking to do connection pooling and am thinking of doing something 
 like http://www.sqlalchemy.org/docs/05/reference/sqlalchemy/pooling.html
 
 Can you guys give some advice and/or better yet, has someone already 
 done this?

I don't know any connection pooling for python-ldap's LDAPObject instances. It
would be certainly nice to have one. I'd recommend to make it look like
ReconnectLDAPObject instances.

Ciao, Michael.

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev


Contributing Mac OS X packages to PyPI

2009-11-04 Thread Ben Gollmer
I have built universal binary packages for Python-LDAP 2.3.10 on both  
Mac OS X 10.5 (Python 2.5) and 10.6 (Python 2.6). Is it possible to  
add these to the PyPI page, to go along with the Windows installers?  
They can be very useful for users that don't have Xcode / gcc installed.



Cheers,
--
Ben


smime.p7s
Description: S/MIME cryptographic signature
--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july___
Python-LDAP-dev mailing list
Python-LDAP-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/python-ldap-dev