From 6c32f44f24b8617990712e325a81342b5e2788a2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 22 Feb 2007 15:25:55 +0000 Subject: r21502: add a very useful option "become dc:donnot leave=yes" with this you can join a domain as dc for testing:-) You still need to setup some dns entries... and add the ldap/.... servicePrincipalName's abartlet: it's wrong to include ldap/ in the list of host=, we should change this... metze (This used to be commit 12f610d747fe827ed402984fa63680b576ed7b03) --- source4/torture/libnet/libnet_BecomeDC.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c index 862dd80f39..9084c64655 100644 --- a/source4/torture/libnet/libnet_BecomeDC.c +++ b/source4/torture/libnet/libnet_BecomeDC.c @@ -812,6 +812,11 @@ BOOL torture_net_become_dc(struct torture_context *torture) goto cleanup; } + if (lp_parm_bool(-1, "become dc", "donnot leave", False)) { + talloc_free(s); + return ret; + } + cleanup: ZERO_STRUCT(u); u.in.domain_dns_name = torture_join_dom_dns_name(s->tj); -- cgit