From: Ondřej Kuzník Date: Wed, 27 Aug 2025 15:02:00 +0000 (+0100) Subject: ITS#10379 slapo-lastbind: Use a fresh timestamp for lastbind mod X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=thirdparty%2Fopenldap.git ITS#10379 slapo-lastbind: Use a fresh timestamp for lastbind mod --- 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 *