1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

r20483: Sorry Volker:-)

I missed to commit this file:-(

metze
(This used to be commit e11885f8a7)
This commit is contained in:
Stefan Metzmacher 2007-01-02 19:24:32 +00:00 committed by Gerald (Jerry) Carter
parent c4d4385a71
commit c0d70be7d0

View File

@ -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;