]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10385 Set correct rootDN for accesslog replay
authorOndřej Kuzník <ondra@mistotebe.net>
Tue, 26 Aug 2025 16:23:38 +0000 (17:23 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 2 Sep 2025 19:20:46 +0000 (19:20 +0000)
servers/slapd/overlays/syncprov.c

index 510dcbfdee9c259bde0a050ad5dd5b0bdf3deda5..6f1eefbc35ef48b9a255aa8b00e27d002427661e 100644 (file)
@@ -2292,6 +2292,8 @@ syncprov_play_accesslog( Operation *op, SlapReply *rs, sync_control *srs,
        fop.o_sync_mode = 0;
        fop.o_dont_replicate = 1;
        fop.o_bd = db;
+       fop.o_dn = db->be_rootdn;
+       fop.o_ndn = db->be_rootndn;
        rc = be_entry_get_rw( &fop, &si->si_logbase, NULL, ad_minCSN, 0, &e );
        if ( rc ) {
                return rc;