]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10379 slapo-lastbind: Use a fresh timestamp for lastbind mod master 787/head
authorOndřej Kuzník <ondra@mistotebe.net>
Wed, 27 Aug 2025 15:02:00 +0000 (16:02 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 2 Sep 2025 20:37:51 +0000 (20:37 +0000)
contrib/slapd-modules/lastbind/lastbind.c

index 4361a46cc5ca242a1d8c2bad68a167fe1bce6b4f..d73d0f5cef5e43b47f311f633d83d86559c3253c 100644 (file)
@@ -184,6 +184,13 @@ done:
                op2.o_dn = op->o_bd->be_rootdn;
                op2.o_ndn = op->o_bd->be_rootndn;
 
+               /*
+                * Other bind response logic (e.g. ppolicy) could have triggered a write
+                * with this operation - use a fresh timestamp.
+                */
+               slap_op_time( &op2.o_time, &op2.o_tincr );
+               BER_BVZERO( &op2.o_csn );
+
                /*
                 * Code for forwarding of updates adapted from ppolicy.c of slapo-ppolicy
                 *