a2a915
diff -up bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c.old-api bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c
a2a915
--- bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c.old-api	2008-11-24 13:28:13.000000000 +0100
a2a915
+++ bind-9.6.0b1/contrib/sdb/ldap/ldapdb.c	2008-11-24 13:28:23.000000000 +0100
a2a915
@@ -25,6 +25,7 @@
a2a915
 /* Using LDAPv3 by default, change this if you want v2 */
a2a915
 #ifndef LDAPDB_LDAP_VERSION
a2a915
 #define LDAPDB_LDAP_VERSION 3
a2a915
+#define LDAP_DEPRECATED 1
a2a915
 #endif
a2a915
 
a2a915
 #include <config.h>
a2a915
diff -up bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c.old-api bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c
a2a915
--- bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c.old-api	2008-11-24 13:29:05.000000000 +0100
a2a915
+++ bind-9.6.0b1/contrib/sdb/ldap/zone2ldap.c	2008-11-24 13:29:14.000000000 +0100
a2a915
@@ -13,6 +13,8 @@
a2a915
  * ditched dNSDomain2 schema support. Version 0.3-ALPHA
a2a915
  */
a2a915
 
a2a915
+#define LDAP_DEPRECATED 1
a2a915
+
a2a915
 #include <errno.h>
a2a915
 #include <string.h>
a2a915
 #include <stdlib.h>