[dovecot-cvs] dovecot/src/auth db-ldap.c,1.41.2.5,1.41.2.6

cras at dovecot.org cras at dovecot.org
Mon Jun 19 19:14:36 EEST 2006


Update of /var/lib/cvs/dovecot/src/auth
In directory talvi:/tmp/cvs-serv24248

Modified Files:
      Tag: branch_1_0
	db-ldap.c 
Log Message:
Prefer sasl/sasl.h. Require SASL v2, otherwise disable it.



Index: db-ldap.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/auth/db-ldap.c,v
retrieving revision 1.41.2.5
retrieving revision 1.41.2.6
diff -u -d -r1.41.2.5 -r1.41.2.6
--- db-ldap.c	19 Jun 2006 16:10:04 -0000	1.41.2.5
+++ db-ldap.c	19 Jun 2006 16:14:34 -0000	1.41.2.6
@@ -16,13 +16,16 @@
 #include <stdlib.h>
 
 #define HAVE_LDAP_SASL
-#ifdef HAVE_SASL_H
-#  include <sasl.h>
-#elif defined (HAVE_SASL_SASL_H)
+#ifdef HAVE_SASL_SASL_H
 #  include <sasl/sasl.h>
+#elif defined (HAVE_SASL_H)
+#  include <sasl.h>
 #else
 #  undef HAVE_LDAP_SASL
 #endif
+#if SASL_VERSION_MAJOR < 2
+#  undef HAVE_LDAP_SASL
+#endif
 
 /* Older versions may require calling ldap_result() twice */
 #if LDAP_VENDOR_VERSION <= 20112



More information about the dovecot-cvs mailing list