]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10379 Use a fresh timestamp for lastbind mod master 783/head
authorOndřej Kuzník <ondra@mistotebe.net>
Thu, 31 Jul 2025 18:30:00 +0000 (19:30 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 5 Aug 2025 15:35:34 +0000 (15:35 +0000)
servers/slapd/bind.c

index ec0709d70eda550a41f1d0a0af74a9240b17c55b..51e342312be05b939439083eb2a76338386fb92a 100644 (file)
@@ -476,6 +476,13 @@ fe_op_lastbind( Operation *op )
        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
         *