PingDirectory

Changelog

You can configure the changelog to capture soft-delete changes to entries so that external clients, such as PingDataSync server, can access these changes.

The ds-soft-delete-entry attribute represents an entry that has been soft-deleted and is part of the source entry passed into the changelog to indicate the entry has been soft-deleted.

All soft-delete operations appear in the changelog as regular DELETE operations. When a soft delete occurs, the resulting changelog entry includes a ds-soft-delete-entry-dn operational attribute with the value of the soft-deleted entry DN. PingDataSync Server recognizes the ds-soft-delete-entry-dn attribute and does nothing with it.

The changelog backend soft-delete-entry-included-operation property determines whether MODIFY or DELETE operations of soft-deleted entries appear in the changelog. This property is disabled by default.

Configuring soft deletes on the changelog backend

Steps

  1. To configure soft deletes on the changelog backend, run the following.

    $ bin/dsconfig set-backend-prop \
    --backend-name changelog \
    --set soft-delete-entry-included-operation:delete \
    --set soft-delete-entry-included-operation:modify
  2. Run a soft-delete operation on an entry.

  3. To review the changelog for the soft-deleted entry, run the following.

    $ bin/ldapsearch --baseDN cn=changelog \
      "(objectclass=*)" "+"

    Result:

    dn: cn=changelog
    subschemaSubentry: cn=schema
    entryUUID: 9920f7e9-5a04-392a-82a8-32662d7d3863
    ds-entry-checksum: 304022441
    dn: changeNumber=1,cn=changelog
    targetUniqueId: 94f634df-c90e-39aa-bd4a-9183c29746d0
    changeTime: 20120511154141Z
    ds-soft-delete-entry-dn: entryUUID=94f634df-c90e-39aa-bd4a-
    9183c29746d0+uid=user.9,ou=People,dc=example,dc=com
    modifyTimestamp: 20131010020345.546Z
    createTimestamp:: 20131010181148.630Z
    localCSN: 000001373C900852000000000003
    modifiersName: uid=admin,dc=example,dc=com
    entry-size-bytes: 298
    subschemaSubentry: cn=schema
    entryUUID: 459b06c6-89f3-307e-a515-22433eb420b6
    createTimestamp: 20120511154141.431Z
    modifyTimestamp: 20120511154141.431Z
    ds-entry-checksum: 1157320579