#47487 enhance retro changelog
Closed: wontfix None Opened 8 years ago by lkrispen.

the retro changelog can be used by clients to retrieve changes from the server, kind of consumer initiated replication. For some operations like modrdn it would be helpful not only to have the dn and the changes, but also the nsuniqueid of the entry.

SunDS provides operational attributes: replicationCSN and targetUniqueId.

RHDS should also enhance its retro changelog

Life can be easy, when looking how to implement I noticed that the functionality is already there and can be configured in the Retro Changelog plugin:

nsslapd-pluginPath: libretrocl-plugin
nsslapd-pluginInitfunc: retrocl_plugin_init
nsslapd-pluginType: object
+ nsslapd-attribute: nsuniqueid:targetUniqueId
nsslapd-pluginEnabled: on
nsslapd-pluginprecedence: 25
nsslapd-plugin-depends-on-type: database

With syncrepl it would be helpful to have the entry available for deleted entries, otherwise it cannot be checked if the entry matches the search and access citreria.

A solution would be to define

nsslapd-pluginArg0: log-deleted

in the retro cl configuration. And have it checked for delete postop calls

$ git merge ticket47487
Updating 35accf2..5f5b355
ldap/servers/plugins/retrocl/retrocl.c | 16 ++++++++++++++++
ldap/servers/plugins/retrocl/retrocl.h | 1 +
ldap/servers/plugins/retrocl/retrocl_po.c | 34 +++++++++++++++++++++++++---------
3 files changed, 42 insertions(+), 9 deletions(-)
$ git push origin master
Counting objects: 17, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 1.47 KiB, done.
Total 9 (delta 7), reused 0 (delta 0)
To ssh://git.fedorahosted.org/git/389/ds.git
35accf2..5f5b355 master -> master

Metadata Update from @lkrispen:
- Issue assigned to lkrispen
- Issue set to the milestone: 1.3.2 - 09/13 (September)

4 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/824

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)

a year ago

Login to comment on this ticket.