diff options
-rw-r--r-- | source4/torture/libnet/libnet_BecomeDC.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source4/torture/libnet/libnet_BecomeDC.c b/source4/torture/libnet/libnet_BecomeDC.c index 605b723316..ecee329ea3 100644 --- a/source4/torture/libnet/libnet_BecomeDC.c +++ b/source4/torture/libnet/libnet_BecomeDC.c @@ -157,13 +157,13 @@ static NTSTATUS test_apply_schema(struct test_become_dc_state *s, switch (a->attid) { case DRSUAPI_ATTRIBUTE_objectClass: -#if 0 - /* - * Metze, please fix this properly :-) - */ + for (j=0; j < a->value_ctr.data_blob.num_values; j++) { + uint32_t val = 0xFFFFFFFF; - for (j=0; j < a->value_ctr.uint32.num_values; j++) { - uint32_t val = *a->value_ctr.uint32.values[j].value; + if (a->value_ctr.data_blob.values[i].data + && a->value_ctr.data_blob.values[i].data->length == 4) { + val = IVAL(a->value_ctr.data_blob.values[i].data->data,0); + } if (val == DRSUAPI_OBJECTCLASS_attributeSchema) { is_attr = true; @@ -172,7 +172,7 @@ static NTSTATUS test_apply_schema(struct test_become_dc_state *s, is_class = true; } } -#endif + break; default: break; |