Hi List

Looks like OpenLDAP 2.3 doesn't define LDAP_DEPRECATED [1] anymore which
causes a few warnings in Gentoo [2].

Attached is a patch that re-defines this so that dovecot can continue
using simple functions like ldap_bind().

Thanks

Roy

[1]
http://www.mail-archive.com/[EMAIL PROTECTED]/msg00487.html

[2] http://bugs.gentoo.org/show_bug.cgi?id=162437
diff -ur /tmp/dovecot-1.0.rc29/src/auth/db-ldap.h dovecot-1.0.rc29/src/auth/db-ldap.h
--- /tmp/dovecot-1.0.rc29/src/auth/db-ldap.h	2007-01-19 15:15:13.000000000 +0000
+++ dovecot-1.0.rc29/src/auth/db-ldap.h	2007-04-12 09:29:06.000000000 +0100
@@ -1,6 +1,10 @@
 #ifndef __DB_LDAP_H
 #define __DB_LDAP_H
 
+/* Functions like ldap_bind have been deprecated in openldap 2.3
+ * This define enables them until the code here can be refactored */
+#define LDAP_DEPRECATED 1
+
 #include <ldap.h>
 
 struct auth_request;

Reply via email to