From: Matthieu Patou Date: Thu, 19 Apr 2012 08:51:24 +0000 (-0700) Subject: s4-kcc: avoid a false alarm with rodc X-Git-Tag: samba-4.0.0alpha20~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf39ef363782dae8d9b73bb249f2321c924c1dc8;p=thirdparty%2Fsamba.git 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 --- diff --git a/source4/dsdb/kcc/kcc_periodic.c b/source4/dsdb/kcc/kcc_periodic.c index f4374d27223..e3792300de0 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);