diff options
author | Matthieu Patou <mat@matws.net> | 2011-10-23 15:01:29 +0200 |
---|---|---|
committer | Matthieu Patou <mat@matws.net> | 2011-11-01 17:26:50 +0100 |
commit | dba46ca771fcf1ba77db68f6436c6564e5a7e1b6 (patch) | |
tree | aa38f72fd5a9f00f268121a08d92251a5bb1e492 /source4/libnet | |
parent | 4b67a10ed04d0d8e2aec9f6d8a07f4c883c58d75 (diff) | |
download | samba-dba46ca771fcf1ba77db68f6436c6564e5a7e1b6.tar.gz samba-dba46ca771fcf1ba77db68f6436c6564e5a7e1b6.tar.bz2 samba-dba46ca771fcf1ba77db68f6436c6564e5a7e1b6.zip |
s4-vampire: Fix the output of fetched object for the schema-dn
Diffstat (limited to 'source4/libnet')
-rw-r--r-- | source4/libnet/libnet_vampire.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/source4/libnet/libnet_vampire.c b/source4/libnet/libnet_vampire.c index ef531a43d2..a11c9cbfbe 100644 --- a/source4/libnet/libnet_vampire.c +++ b/source4/libnet/libnet_vampire.c @@ -519,6 +519,7 @@ NTSTATUS libnet_vampire_cb_schema_chunk(void *private_data, WERROR status; const struct drsuapi_DsReplicaOIDMapping_Ctr *mapping_ctr; uint32_t nc_object_count; + uint32_t nc_total_received = 0; uint32_t object_count; struct drsuapi_DsReplicaObjectListItemEx *first_object; struct drsuapi_DsReplicaObjectListItemEx *cur; @@ -549,13 +550,18 @@ NTSTATUS libnet_vampire_cb_schema_chunk(void *private_data, return NT_STATUS_INVALID_PARAMETER; } + if (!s->schema_part.first_object) { + nc_total_received = object_count; + } else { + nc_total_received = s->schema_part.object_count + object_count; + } if (nc_object_count) { DEBUG(0,("Schema-DN[%s] objects[%u/%u] linked_values[%u/%u]\n", - c->partition->nc.dn, object_count, nc_object_count, + c->partition->nc.dn, nc_total_received, nc_object_count, linked_attributes_count, nc_linked_attributes_count)); } else { DEBUG(0,("Schema-DN[%s] objects[%u] linked_values[%u]\n", - c->partition->nc.dn, object_count, linked_attributes_count)); + c->partition->nc.dn, nc_total_received, linked_attributes_count)); } if (!s->self_made_schema) { |