svn commit: samba r21502 - in branches/SAMBA_4_0/source/torture/libnet: .

metze at samba.org metze at samba.org
Thu Feb 22 15:25:56 GMT 2007


Author: metze
Date: 2007-02-22 15:25:55 +0000 (Thu, 22 Feb 2007)
New Revision: 21502

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=21502

Log:
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
Modified:
   branches/SAMBA_4_0/source/torture/libnet/libnet_BecomeDC.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/libnet/libnet_BecomeDC.c
===================================================================
--- branches/SAMBA_4_0/source/torture/libnet/libnet_BecomeDC.c	2007-02-22 14:29:04 UTC (rev 21501)
+++ branches/SAMBA_4_0/source/torture/libnet/libnet_BecomeDC.c	2007-02-22 15:25:55 UTC (rev 21502)
@@ -812,6 +812,11 @@
 		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);



More information about the samba-cvs mailing list