Platform SDK: Exchange Server

Retrieving Deleted Objects Through ADSI

Just as important as retrieving incremental changes from the Microsoft Exchange directory is the ability to retrieve deleted objects. This can be done by binding using clear text authentication with ",cn=admin" appended to the user's DN (for example, dc=domain,cn=jsmith,cn =admin). For information about clear text authentication, see the online Help for the Microsoft Exchange Server Administrator program.

After a client is authenticated by the Microsoft Exchange directory with ",cn=admin" in the user's DN, it can query for an operational attribute called "is-deleted". This is a Boolean attribute that indicates whether the object has been deleted.

A deleted object is referred to as a tombstone. Tombstones exist for a period of time indicated by the "Tombstone lifetime" parameter, which is specified on the General page of the DS Site Configuration property sheet through the Microsoft Exchange Administrator program. By default, the "Tombstone lifetime" is set to 30 days. If your application must remove deletions from the Microsoft Exchange directory, make sure that it runs within the "Tombstone lifetime" period.