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

metze at samba.org metze at samba.org
Thu Dec 28 12:54:55 GMT 2006


Author: metze
Date: 2006-12-28 12:54:55 +0000 (Thu, 28 Dec 2006)
New Revision: 20381

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

Log:
verify the incoming oid mappings and schema info for the config and domain partition too

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	2006-12-28 12:50:39 UTC (rev 20380)
+++ branches/SAMBA_4_0/source/torture/libnet/libnet_BecomeDC.c	2006-12-28 12:54:55 UTC (rev 20381)
@@ -210,15 +210,20 @@
 static NTSTATUS test_become_dc_store_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);
+	WERROR status;
+	const struct drsuapi_DsReplicaOIDMapping_Ctr *mapping_ctr;
 	uint32_t total_object_count;
 	uint32_t object_count;
 
 	switch (c->ctr_level) {
 	case 1:
+		mapping_ctr		= &c->ctr1->mapping_ctr;
 		total_object_count	= c->ctr1->total_object_count;
 		object_count		= c->ctr1->object_count;
 		break;
 	case 6:
+		mapping_ctr		= &c->ctr6->mapping_ctr;
 		total_object_count	= c->ctr6->total_object_count;
 		object_count		= c->ctr6->object_count;
 		break;
@@ -234,6 +239,11 @@
 		c->partition->nc.dn, object_count));
 	}
 
+	status = dsdb_verify_oid_mappings(s->schema, mapping_ctr);
+	if (!W_ERROR_IS_OK(status)) {
+		return werror_to_ntstatus(status);
+	}
+
 	return NT_STATUS_OK;
 }
 



More information about the samba-cvs mailing list