From cf39ef363782dae8d9b73bb249f2321c924c1dc8 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Thu, 19 Apr 2012 01:51:24 -0700 Subject: s4-kcc: avoid a false alarm with rodc Autobuild-User: Matthieu Patou Autobuild-Date: Thu Apr 19 12:32:58 CEST 2012 on sn-devel-104 --- source4/dsdb/kcc/kcc_periodic.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source4/dsdb/kcc/kcc_periodic.c b/source4/dsdb/kcc/kcc_periodic.c index f4374d2722..e3792300de 100644 --- a/source4/dsdb/kcc/kcc_periodic.c +++ b/source4/dsdb/kcc/kcc_periodic.c @@ -436,6 +436,13 @@ static int kccsrv_gc_update(struct kccsrv_service *s, struct ldb_result *res) talloc_free(tmp_ctx); return LDB_SUCCESS; } + + if (s->am_rodc) { + DEBUG(5, ("%d partial replica should be added but we are RODC so we skip\n", msg->num_elements)); + talloc_free(tmp_ctx); + return LDB_SUCCESS; + } + msg->elements[0].flags = LDB_FLAG_MOD_ADD; ret = dsdb_modify(s->samdb, msg, 0); -- cgit