summaryrefslogtreecommitdiff
path: root/source4/dsdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-19 21:48:35 -0700
committerAndrew Tridgell <tridge@samba.org>2010-09-20 15:27:45 -0700
commit59951163bea67b1a5d5eeef109f200a6323c00f3 (patch)
tree6987a56e7bcd71d6273dfdd8b7a2f935f65f01c1 /source4/dsdb
parentead126caace0cd94ab515f5d9f2199b60a84f914 (diff)
downloadsamba-59951163bea67b1a5d5eeef109f200a6323c00f3.tar.gz
samba-59951163bea67b1a5d5eeef109f200a6323c00f3.tar.bz2
samba-59951163bea67b1a5d5eeef109f200a6323c00f3.zip
s4-kcc: a bit more debug info on repsFrom creation
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/dsdb')
-rw-r--r--source4/dsdb/kcc/kcc_periodic.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source4/dsdb/kcc/kcc_periodic.c b/source4/dsdb/kcc/kcc_periodic.c
index a79c848567..c396912aa3 100644
--- a/source4/dsdb/kcc/kcc_periodic.c
+++ b/source4/dsdb/kcc/kcc_periodic.c
@@ -73,7 +73,8 @@ static bool check_MasterNC(struct kccsrv_partition *p, struct repsFromToBlob *r,
struct ldb_dn *dn;
struct GUID id2 = samdb_result_guid(msg, "invocationID");
- if (!GUID_equal(&invocation_id, &id2)) {
+ if (GUID_all_zero(&id2) ||
+ !GUID_equal(&invocation_id, &id2)) {
continue;
}
@@ -89,6 +90,9 @@ static bool check_MasterNC(struct kccsrv_partition *p, struct repsFromToBlob *r,
}
if (ldb_dn_compare(dn, p->dn) == 0) {
talloc_free(dn);
+ DEBUG(5,("%s hasMasterNCs match on %s in %s\n",
+ r1->other_info->dns_name, ldb_dn_get_linearized(dn),
+ ldb_dn_get_linearized(msg->dn)));
return true;
}
talloc_free(dn);
@@ -183,6 +187,7 @@ static NTSTATUS kccsrv_add_repsFrom(struct kccsrv_service *s, TALLOC_CTX *mem_ct
old_reps[old_count] = reps[i];
old_count++;
modified = true;
+ DEBUG(4,(__location__ ": Added repsFrom for %s\n", reps[i].ctr.ctr1.other_info->dns_name));
}
}
@@ -194,6 +199,7 @@ static NTSTATUS kccsrv_add_repsFrom(struct kccsrv_service *s, TALLOC_CTX *mem_ct
old_count--;
i--;
modified = true;
+ DEBUG(4,(__location__ ": Removed repsFrom for %s\n", reps[i].ctr.ctr1.other_info->dns_name));
}
}