s3-libnet-samsync: add samsync_ops to all samsync modules.
authorGünther Deschner <gd@samba.org>
Mon, 17 Nov 2008 15:29:11 +0000 (16:29 +0100)
committerGünther Deschner <gd@samba.org>
Tue, 18 Nov 2008 15:04:30 +0000 (16:04 +0100)
Guenther

source3/libnet/libnet_samsync.h
source3/libnet/libnet_samsync_display.c
source3/libnet/libnet_samsync_keytab.c
source3/libnet/libnet_samsync_ldif.c
source3/libnet/libnet_samsync_passdb.c

index 42bf8d15370611990003107078959f4432ab2fae..2f0f049fb90af5a224b953c9bd5b278f2b92e745 100644 (file)
@@ -86,6 +86,11 @@ struct samsync_context {
        void *private_data;
 };
 
+extern const struct samsync_ops libnet_samsync_ldif_ops;
+extern const struct samsync_ops libnet_samsync_keytab_ops;
+extern const struct samsync_ops libnet_samsync_display_ops;
+extern const struct samsync_ops libnet_samsync_passdb_ops;
+
 NTSTATUS fetch_sam_entries_ldif(TALLOC_CTX *mem_ctx,
                                enum netr_SamDatabaseID database_id,
                                struct netr_DELTA_ENUM_ARRAY *r,
index 1dd9a1add5d5cce63d4cc6afb9c9eeebca2724ad..5a0c3088cf757d5fe025ba0da5be056794cfaa05 100644 (file)
@@ -300,3 +300,7 @@ NTSTATUS display_sam_entries(TALLOC_CTX *mem_ctx,
 
        return NT_STATUS_OK;
 }
+
+const struct samsync_ops libnet_samsync_display_ops = {
+       .process_objects        = display_sam_entries,
+};
index 5c17d010aa418c6ee57dfc5b18f0fd7a1f3d7cd3..b68d70145cfb7099282edcb11298be7628069384 100644 (file)
@@ -188,3 +188,7 @@ NTSTATUS fetch_sam_entries_keytab(TALLOC_CTX *mem_ctx,
 }
 
 #endif /* defined(HAVE_ADS) && defined(ENCTYPE_ARCFOUR_HMAC) */
+
+const struct samsync_ops libnet_samsync_keytab_ops = {
+       .process_objects        = fetch_sam_entries_keytab,
+};
index dd5380b6b84f20906d1f800343c974fa50041654..245ebe0b9f9407bb8c8555c4d6bd971f17c8edcb 100644 (file)
@@ -1226,3 +1226,7 @@ NTSTATUS fetch_sam_entries_ldif(TALLOC_CTX *mem_ctx,
 }
 
 #endif
+
+const struct samsync_ops libnet_samsync_ldif_ops = {
+       .process_objects        = fetch_sam_entries_ldif,
+};
index 7ace77caceb8b640b3993ae91435ef13bdf07f6a..6e068e0f41d6bcc2e4a9fb454298b686d57575dc 100644 (file)
@@ -786,3 +786,7 @@ NTSTATUS fetch_sam_entries(TALLOC_CTX *mem_ctx,
 
        return NT_STATUS_OK;
 }
+
+const struct samsync_ops libnet_samsync_passdb_ops = {
+       .process_objects        = fetch_sam_entries,
+};