summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-08-08 23:03:51 +0200
committerMichael Adam <obnox@samba.org>2008-08-08 23:03:51 +0200
commita0e664ebe701649bf674690a495377d745967081 (patch)
treef28a5aea43d395c62c270a11edddd424b21304db
parentc66c2b30b8b7616a4f2d2f31838cae4227b0d8ce (diff)
downloadsamba-a0e664ebe701649bf674690a495377d745967081.tar.gz
samba-a0e664ebe701649bf674690a495377d745967081.tar.bz2
samba-a0e664ebe701649bf674690a495377d745967081.zip
libnet samsync ldif: fix the build without LDAP.
Michael (This used to be commit 32df05bd1f49f2290ad69f84d5a47207b1469629)
-rw-r--r--source3/libnet/libnet_samsync_ldif.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/libnet/libnet_samsync_ldif.c b/source3/libnet/libnet_samsync_ldif.c
index adcf92832d..cbae22aad3 100644
--- a/source3/libnet/libnet_samsync_ldif.c
+++ b/source3/libnet/libnet_samsync_ldif.c
@@ -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