s4-drs: show the user sid that does the GetNCChanges call
authorAndrew Tridgell <tridge@samba.org>
Mon, 23 Aug 2010 01:33:19 +0000 (11:33 +1000)
committerAndrew Tridgell <tridge@samba.org>
Mon, 23 Aug 2010 05:55:39 +0000 (15:55 +1000)
this is useful when debugging replication

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

source4/rpc_server/drsuapi/getncchanges.c

index 85522d0b050a99a5e1245f8f3a91c0c78ac68f15..7eb5ee0d98e941142ab46eef335dc8f1a0218a22 100644 (file)
@@ -1366,13 +1366,14 @@ WERROR dcesrv_drsuapi_DsGetNCChanges(struct dcesrv_call_state *dce_call, TALLOC_
        }
 
        DEBUG(r->out.ctr->ctr6.more_data?2:1,
-             ("DsGetNCChanges with uSNChanged >= %llu flags 0x%08x on %s gave %u objects (done %u/%u) %u links (done %u/%u)\n",
+             ("DsGetNCChanges with uSNChanged >= %llu flags 0x%08x on %s gave %u objects (done %u/%u) %u links (done %u/%u (as %s))\n",
               (unsigned long long)(req8->highwatermark.highest_usn+1),
               req8->replica_flags, ncRoot->dn,
               r->out.ctr->ctr6.object_count,
               i, r->out.ctr->ctr6.more_data?getnc_state->site_res->count:i,
               r->out.ctr->ctr6.linked_attributes_count,
-              link_given, link_total));
+              link_given, link_total,
+              dom_sid_string(mem_ctx, user_sid)));
 
 #if 0
        if (!r->out.ctr->ctr6.more_data && req8->extended_op != DRSUAPI_EXOP_NONE) {