summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-02-22 15:25:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:48:46 -0500
commit6c32f44f24b8617990712e325a81342b5e2788a2 (patch)
tree8e6c0b67dfaece6a139edd8e0268040acc5b1043
parent31d6d8c45735bef52a14b922667a036245df8061 (diff)
downloadsamba-6c32f44f24b8617990712e325a81342b5e2788a2.tar.gz
samba-6c32f44f24b8617990712e325a81342b5e2788a2.tar.bz2
samba-6c32f44f24b8617990712e325a81342b5e2788a2.zip
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)
-rw-r--r--source4/torture/libnet/libnet_BecomeDC.c5
1 files changed, 5 insertions, 0 deletions
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);