Not now. However, I think I spotted (and probably fixed) another related
issue. The key point is that slapadd -w simply checks, and in case
updates, the first occurrence of contextCSN. I believe this is not
correct: it should go through all occurrences to find if there's one with
the same SID of maxcsn and, if maxcsn is larger than that, update it. If
none matches, maxcsn should be added. For this purpose, I defined a
CSNSIDMatch equality rule, that works for the CSN syntax, and allows to
compare CSN values by SID only. I added this logic to slapadd -w and now
things seem to work as expected.