From 52a8419baec4097518b7fd6ea502326d9df05055 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ond=C5=99ej=20Kuzn=C3=ADk?= Date: Wed, 27 Aug 2025 16:02:00 +0100 Subject: [PATCH] ITS#10379 slapo-lastbind: Use a fresh timestamp for lastbind mod --- contrib/slapd-modules/lastbind/lastbind.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/contrib/slapd-modules/lastbind/lastbind.c b/contrib/slapd-modules/lastbind/lastbind.c index 4361a46cc5..d73d0f5cef 100644 --- a/contrib/slapd-modules/lastbind/lastbind.c +++ b/contrib/slapd-modules/lastbind/lastbind.c @@ -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 * -- 2.47.3