summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-20 16:34:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:29:32 -0500
commit64ba98bbd4699ac6d826eafd46782eceba2e85d2 (patch)
treef02c98b9d40b521146690ad98291c1be6cadff41 /source4/torture
parent52455cb9224bc7358f6700c8e3a233ff8c9a0f2a (diff)
downloadsamba-64ba98bbd4699ac6d826eafd46782eceba2e85d2.tar.gz
samba-64ba98bbd4699ac6d826eafd46782eceba2e85d2.tar.bz2
samba-64ba98bbd4699ac6d826eafd46782eceba2e85d2.zip
r20285: pass more info to check_options hook and move behavior versions etc.
to the domain and forest structures metze (This used to be commit 15157bf5b94dacc868c49dbf750421eb221868ba)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/libnet/libnet_BecomeDC.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c
index cad4921f67..8db3b8d448 100644
--- a/source4/torture/libnet/libnet_BecomeDC.c
+++ b/source4/torture/libnet/libnet_BecomeDC.c
@@ -29,14 +29,23 @@
#define TORTURE_NETBIOS_NAME "smbtorturedc"
-static NTSTATUS test_become_dc_chec_options(void *private_data,
- const struct libnet_BecomeDC_Options *options)
+static NTSTATUS test_become_dc_check_options(void *private_data,
+ const struct libnet_BecomeDC_CheckOptions *o)
{
- DEBUG(0,("Options: domain[%u] config[%u] schema[%u] w2k3_update[%u]\n",
- options->domain_behavior_version,
- options->config_behavior_version,
- options->schema_object_version,
- options->w2k3_update_revision));
+ DEBUG(0,("Become DC of Domain[%s]/[%s]\n",
+ o->domain->netbios_name, o->domain->dns_name));
+
+ DEBUG(0,("Promotion Partner is Server[%s] from Site[%s]\n",
+ o->source_dsa->dns_name, o->source_dsa->site_name));
+
+ DEBUG(0,("Options:crossRef behavior_version[%u]\n"
+ "\tschema object_version[%u]\n"
+ "\tdomain behavior_version[%u]\n"
+ "\tdomain w2k3_update_revision[%u]\n",
+ o->forest->crossref_behavior_version,
+ o->forest->schema_object_version,
+ o->domain->behavior_version,
+ o->domain->w2k3_update_revision));
return NT_STATUS_OK;
}
@@ -71,7 +80,7 @@ BOOL torture_net_become_dc(struct torture_context *torture)
b.in.source_dsa_address = lp_parm_string(-1, "torture", "host");
b.in.dest_dsa_netbios_name = TORTURE_NETBIOS_NAME;
- b.in.callbacks.check_options = test_become_dc_chec_options;
+ b.in.callbacks.check_options = test_become_dc_check_options;
status = libnet_BecomeDC(ctx, ctx, &b);
if (!NT_STATUS_IS_OK(status)) {