summaryrefslogtreecommitdiff
path: root/source4/torture/libnet
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/libnet')
-rw-r--r--source4/torture/libnet/libnet_BecomeDC.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c
index 46d9ba769e..34ae53eb22 100644
--- a/source4/torture/libnet/libnet_BecomeDC.c
+++ b/source4/torture/libnet/libnet_BecomeDC.c
@@ -34,8 +34,8 @@
#include "librpc/gen_ndr/ndr_drsblobs.h"
#include "librpc/gen_ndr/ndr_misc.h"
#include "system/time.h"
-#include "auth/auth.h"
#include "lib/ldb_wrap.h"
+#include "auth/auth.h"
#include "param/param.h"
#include "torture/util.h"
@@ -68,6 +68,20 @@ struct test_become_dc_state {
} path;
};
+static NTSTATUS test_become_dc_prepare_db(void *private_data,
+ const struct libnet_BecomeDC_PrepareDB *p)
+{
+ struct test_become_dc_state *s = talloc_get_type(private_data, struct test_become_dc_state);
+ return provision_bare(s, s->tctx->lp_ctx, p->dest_dsa->dns_name,
+ p->dest_dsa->site_name, p->forest->root_dn_str,
+ p->domain->dn_str, p->forest->config_dn_str,
+ p->forest->schema_dn_str,
+ &p->dest_dsa->invocation_id,
+ p->dest_dsa->netbios_name,
+ torture_join_dom_dns_name(s->tj),
+ torture_join_dom_netbios_name(s->tj));
+}
+
static NTSTATUS test_become_dc_check_options(void *private_data,
const struct libnet_BecomeDC_CheckOptions *o)
{