diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-02-15 00:23:56 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-02-15 00:23:56 +0100 |
commit | 18a011d8a822476c3acfe37653ad19c31b904ff0 (patch) | |
tree | dd923473a51e3e267408ebe3a1ffe12a4246a625 /source4/torture/libnet | |
parent | ff64a6716092db5d0ac13658bb7e400da90e0dd9 (diff) | |
download | samba-18a011d8a822476c3acfe37653ad19c31b904ff0.tar.gz samba-18a011d8a822476c3acfe37653ad19c31b904ff0.tar.bz2 samba-18a011d8a822476c3acfe37653ad19c31b904ff0.zip |
Avoid using private libnet test structure inside util_provision.
(This used to be commit 1a1f8a5e6b193f25f4838a3e7964cdf0590f4eb2)
Diffstat (limited to 'source4/torture/libnet')
-rw-r--r-- | source4/torture/libnet/libnet_BecomeDC.c | 16 |
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) { |