To undelete a soft-deleted entry, use ldapmodify with the --allowUndelete option and target the specific soft-deleted entry that you want to restore. In an LDIF file or from the command line, specify the dn:<target entry> attribute, which is the DN that the entry will be undeleted to and the ds-undelete-from-dn attribute, which is the entry that will be undeleted from. An undelete requires the add changetype so that the entry can be re-added to the server.