From 7cb96a785f6362eb3df820cfdee73bbbc9d06960 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 20 Dec 2006 21:54:06 +0000 Subject: r20293: implement store chunk hook for libnet_BecomeDC() metze (This used to be commit aba497f2fdb79e4a61c028501d4d33a3f678ba73) --- source4/torture/libnet/libnet_BecomeDC.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'source4/torture/libnet/libnet_BecomeDC.c') diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c index 561ad622bb..fdb2cc3214 100644 --- a/source4/torture/libnet/libnet_BecomeDC.c +++ b/source4/torture/libnet/libnet_BecomeDC.c @@ -77,6 +77,15 @@ static NTSTATUS test_become_dc_prepare_db(void *private_data, return NT_STATUS_OK; } +static NTSTATUS test_become_dc_store_chunk(void *private_data, + const struct libnet_BecomeDC_StoreChunk *c) +{ + DEBUG(0,("Partition[%s]\n", + c->partition->nc.dn)); + + return NT_STATUS_OK; +} + BOOL torture_net_become_dc(struct torture_context *torture) { BOOL ret = True; @@ -110,6 +119,9 @@ BOOL torture_net_become_dc(struct torture_context *torture) b.in.callbacks.private_data = tj; b.in.callbacks.check_options = test_become_dc_check_options; b.in.callbacks.prepare_db = test_become_dc_prepare_db; + b.in.callbacks.schema_chunk = test_become_dc_store_chunk; + b.in.callbacks.config_chunk = test_become_dc_store_chunk; + b.in.callbacks.domain_chunk = test_become_dc_store_chunk; status = libnet_BecomeDC(ctx, ctx, &b); if (!NT_STATUS_IS_OK(status)) { -- cgit