Use the repl_meta_data module by default.
[samba.git] / source4 / dsdb / samdb / ldb_modules / repl_meta_data.c
index a21cf250cbff8112afc168e50b00a0e721227d9d..5100b7cb7c89ea2e6a4bb9521b52980fd2b5c743 100644 (file)
@@ -391,6 +391,10 @@ static int replmd_add_originating(struct ldb_module *module,
                m->originating_usn              = seq_num;
                m->local_usn                    = seq_num;
                ni++;
+
+               if (ldb_attr_cmp(e->name, ldb_dn_get_rdn_name(msg->dn))) {
+                       rdn_attr = sa;
+               }
        }
 
        /* fix meta data count */