]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-kcc: avoid a false alarm with rodc
authorMatthieu Patou <mat@matws.net>
Thu, 19 Apr 2012 08:51:24 +0000 (01:51 -0700)
committerMatthieu Patou <mat@samba.org>
Thu, 19 Apr 2012 10:32:58 +0000 (12:32 +0200)
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Thu Apr 19 12:32:58 CEST 2012 on sn-devel-104

source4/dsdb/kcc/kcc_periodic.c

index f4374d2722305b1deb5abca9fc2ab7625d8858a7..e3792300de0c00636f55aa128b30e32c23413ce5 100644 (file)
@@ -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);