summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/libnet/libnet_BecomeDC.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c
index e69f7d92a6..827a79a0f0 100644
--- a/source4/torture/libnet/libnet_BecomeDC.c
+++ b/source4/torture/libnet/libnet_BecomeDC.c
@@ -118,8 +118,6 @@ struct test_become_dc_state {
const char *secrets_ldb;
const char *secrets_keytab;
} path;
-
- const char *computer_dn;
};
static NTSTATUS test_become_dc_check_options(void *private_data,
@@ -715,17 +713,6 @@ static NTSTATUS test_become_dc_store_chunk(void *private_data,
return NT_STATUS_OK;
}
-static NTSTATUS test_become_dc_domain_chunk(void *private_data,
- const struct libnet_BecomeDC_StoreChunk *c)
-{
- struct test_become_dc_state *s = talloc_get_type(private_data, struct test_become_dc_state);
-
- s->computer_dn = talloc_strdup(s, c->dest_dsa->computer_dn_str);
- NT_STATUS_HAVE_NO_MEMORY(s->computer_dn);
-
- return test_become_dc_store_chunk(private_data, c);
-}
-
BOOL torture_net_become_dc(struct torture_context *torture)
{
BOOL ret = True;
@@ -785,7 +772,7 @@ BOOL torture_net_become_dc(struct torture_context *torture)
b.in.callbacks.prepare_db = test_become_dc_prepare_db;
b.in.callbacks.schema_chunk = test_become_dc_schema_chunk;
b.in.callbacks.config_chunk = test_become_dc_store_chunk;
- b.in.callbacks.domain_chunk = test_become_dc_domain_chunk;
+ b.in.callbacks.domain_chunk = test_become_dc_store_chunk;
status = libnet_BecomeDC(s->ctx, s, &b);
if (!NT_STATUS_IS_OK(status)) {