summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-12-28 12:54:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:30:20 -0500
commit112d58a0c5dda18228fcbed8547cd6aacdd2e384 (patch)
treea1563419584352e722e8665a98ef17f3ddc94250 /source4
parent6a75d272fcbc5fdcd5c2223055e4b50b1ff024bc (diff)
downloadsamba-112d58a0c5dda18228fcbed8547cd6aacdd2e384.tar.gz
samba-112d58a0c5dda18228fcbed8547cd6aacdd2e384.tar.bz2
samba-112d58a0c5dda18228fcbed8547cd6aacdd2e384.zip
r20381: verify the incoming oid mappings and schema info for the config and domain partition too
metze (This used to be commit 1fab753b1da608d49bd976e01286f800c2d42965)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/libnet/libnet_BecomeDC.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c
index fa0cfe29bf..6266555d8d 100644
--- a/source4/torture/libnet/libnet_BecomeDC.c
+++ b/source4/torture/libnet/libnet_BecomeDC.c
@@ -210,15 +210,20 @@ static NTSTATUS test_become_dc_schema_chunk(void *private_data,
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 @@ static NTSTATUS test_become_dc_store_chunk(void *private_data,
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;
}