Searching for soft deletes - PingDirectory - 9.3

PingDirectory 9.3

bundle
pingdirectory-93
ft:publication_title
PingDirectory 9.3
Product_Version_ce
PingDirectory 9.3 (Latest)
category
Product
pd-93
pingdirectory
ContentType_ce

Soft-deleted entries are excluded from normal LDAP searches because they represent deleted entries. The updated ldapsearch tool supports these types of searches.

There are three different ways to search for soft-deleted entries.

  • To perform a base-level search on a soft-deleted entry by distinguished name (DN), run the ldapsearch command and specify the base DN of the specific soft-deleted entry that you are searching for.
  • To filter your search by ds-soft-delete-entry object class, run a search for all soft-deleted entries with the ldapsearch command with a filter on the ds-soft-delete-entry object class.
  • To return soft-deleted entries, use the soft-delete-entry-access-control with the LDAP search.

    The ldapsearch tool provides a shortcut option, --includeSoftDeletedEntries, that sends the control to the server for processing. The control allows for the following search possibilities:

    • Return only soft-deleted entries.
    • Return non-deleted entries along with soft-deleted entries.
    • Return only soft-deleted entries in undeleted form.