• Use ldapmodify with the --allowUndelete option and target the specific soft-deleted entry that you want to restore. The --allowUndelete option sends the Soft Undelete Request Control to the server. The first DN is the entry to undelete to and the ds-undelete-from-dn is the soft-delete entry to undelete from.
    $ bin/ldapmodify --allowUndelete  
    dn: uid=user.1,ou=People,dc=example,dc=com           
    ds-undelete-from-dn: entryUUID=4e9b7847-edcb-3791-b11b-