libnet samsync ldif: fix the build without LDAP.
authorMichael Adam <obnox@samba.org>
Fri, 8 Aug 2008 21:03:51 +0000 (23:03 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 8 Aug 2008 21:03:51 +0000 (23:03 +0200)
Michael
(This used to be commit 32df05bd1f49f2290ad69f84d5a47207b1469629)

source3/libnet/libnet_samsync_ldif.c

index adcf92832df0d189a7366d45939e1b76dfc184e5..cbae22aad3941c9ad5bd78ee075da0999506085c 100644 (file)
@@ -26,6 +26,8 @@
 #include "includes.h"
 #include "libnet/libnet_samsync.h"
 
+#ifdef HAVE_LDAP
+
 /* uid's and gid's for writing deltas to ldif */
 static uint32 ldif_gid = 999;
 static uint32 ldif_uid = 999;
@@ -1212,3 +1214,16 @@ NTSTATUS fetch_sam_entries_ldif(TALLOC_CTX *mem_ctx,
 
        return status;
 }
+
+#else /* HAVE_LDAP */
+
+NTSTATUS fetch_sam_entries_ldif(TALLOC_CTX *mem_ctx,
+                               enum netr_SamDatabaseID database_id,
+                               struct netr_DELTA_ENUM_ARRAY *r,
+                               bool last_query,
+                               struct samsync_context *ctx)
+{
+       return NT_STATUS_NOT_SUPPORTED;
+}
+
+#endif