]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10379 Use a fresh timestamp for lastbind mod
authorOndřej Kuzník <ondra@mistotebe.net>
Thu, 31 Jul 2025 18:30:00 +0000 (19:30 +0100)
committerQuanah Gibson-Mount <quanah@openldap.org>
Mon, 8 Sep 2025 23:09:39 +0000 (23:09 +0000)
servers/slapd/bind.c

index 1422491560402c6cd86e05976fbe288adfcbd2b3..386c284f4b3f849df5d8113e629c31080a12a813 100644 (file)
@@ -472,6 +472,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
         *