diff options
author | Matthieu Patou <mat@matws.net> | 2012-04-19 01:51:24 -0700 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2012-04-19 12:32:58 +0200 |
commit | cf39ef363782dae8d9b73bb249f2321c924c1dc8 (patch) | |
tree | 2452bf00d9ffc58ede26861379591d6535b0397f /source4 | |
parent | 89cb1a46760b2f95abdf832f0db713f1c979caf8 (diff) | |
download | samba-cf39ef363782dae8d9b73bb249f2321c924c1dc8.tar.gz samba-cf39ef363782dae8d9b73bb249f2321c924c1dc8.tar.bz2 samba-cf39ef363782dae8d9b73bb249f2321c924c1dc8.zip |
s4-kcc: avoid a false alarm with rodc
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Thu Apr 19 12:32:58 CEST 2012 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dsdb/kcc/kcc_periodic.c | 7 |
1 files changed, 7 insertions, 0 deletions
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); |