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 *