summaryrefslogtreecommitdiffstats
path: root/source3/libnet/libnet_samsync.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-18 12:52:00 +0200
committerGünther Deschner <gd@samba.org>2008-06-24 23:40:14 +0200
commitadef1b004bde0d88f7cf2f46b62312e49a1ad2e6 (patch)
tree27741769517242b27e567e538b1bba918bcf5714 /source3/libnet/libnet_samsync.h
parent34e41674468eb699b68c5ffbe34293f91e3b76fa (diff)
downloadsamba-adef1b004bde0d88f7cf2f46b62312e49a1ad2e6.tar.gz
samba-adef1b004bde0d88f7cf2f46b62312e49a1ad2e6.tar.xz
samba-adef1b004bde0d88f7cf2f46b62312e49a1ad2e6.zip
net_vampire: add code to vampire a SAM database to a keytab file.
Guenther (This used to be commit ee6e422c0e035aa4779fa718bb6f142827cc2de0)
Diffstat (limited to 'source3/libnet/libnet_samsync.h')
-rw-r--r--source3/libnet/libnet_samsync.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/libnet/libnet_samsync.h b/source3/libnet/libnet_samsync.h
index de0225c6fc..8559043f5a 100644
--- a/source3/libnet/libnet_samsync.h
+++ b/source3/libnet/libnet_samsync.h
@@ -21,7 +21,8 @@
enum net_samsync_mode {
NET_SAMSYNC_MODE_FETCH_PASSDB = 0,
NET_SAMSYNC_MODE_FETCH_LDIF = 1,
- NET_SAMSYNC_MODE_DUMP = 2
+ NET_SAMSYNC_MODE_FETCH_KEYTAB = 2,
+ NET_SAMSYNC_MODE_DUMP = 3
};
struct samsync_context;
@@ -65,3 +66,8 @@ NTSTATUS display_sam_entries(TALLOC_CTX *mem_ctx,
struct netr_DELTA_ENUM_ARRAY *r,
NTSTATUS status,
struct samsync_context *ctx);
+NTSTATUS fetch_sam_entries_keytab(TALLOC_CTX *mem_ctx,
+ enum netr_SamDatabaseID database_id,
+ struct netr_DELTA_ENUM_ARRAY *r,
+ NTSTATUS status,
+ struct samsync_context *ctx);