when renaming an entry, dn must be reset to the correct value for the modifications that come after the rename.