--- python-ldap-2.2.0~/setup.cfg
+++ python-ldap-2.2.0/setup.cfg
@@ -7,8 +7,8 @@
 # for wrapping OpenLDAP 2 libs
 [_ldap]
 
-library_dirs = /usr/local/openldap-REL_ENG_2_1/lib /usr/local/cyrus-sasl/lib
-include_dirs = /usr/local/openldap-REL_ENG_2_1/include /usr/local/cyrus-sasl/include
+library_dirs =
+include_dirs = /usr/include/sasl
 
 extra_compile_args = 
 extra_objects = 
@@ -23,7 +23,9 @@
 # Support for StartTLS/LDAPS, SASL bind and reentrant libldap_r.
 # This needs recent OpenLDAP 2.0.26+ or 2.1.3+ built with
 # ./configure --with-cyrus-sasl --with-tls
-libs = ldap_r lber sasl2 ssl crypto
+libs = ldap_r lber sasl2
+
+defines = HAVE_TLS
 
 # Installation options
 [install]
