summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/replication/windows_tot_protocol.c
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2008-08-27 21:47:00 +0000
committerRich Megginson <rmeggins@redhat.com>2008-08-27 21:47:00 +0000
commit446134bf3bd4d85433738bb257dba18269c32980 (patch)
tree5f97325ab901d1c2af3e699b654e945597b326d3 /ldap/servers/plugins/replication/windows_tot_protocol.c
parent27f282f02a60818e750902ecfd748ef3521f9539 (diff)
downloadds-446134bf3bd4d85433738bb257dba18269c32980.tar.gz
ds-446134bf3bd4d85433738bb257dba18269c32980.tar.xz
ds-446134bf3bd4d85433738bb257dba18269c32980.zip
Resolves: bug 457846
Bug Description: The Windows Sync API should have plug-in points Reviewed by: nkinder (Thanks!) Fix Description: Some additional changes to the api 1) added plugin points for begin update, end update, and agreement destruction 2) added debugging code to allow a regular DS to stand in for AD 3) fixed a couple of minor memory leaks 4) added the rest of the SLAPI DSE code to the public API to allow plugins to do dynamic configuration using the SLAPI public API Platforms tested: RHEL5 Flag Day: no Doc impact: yes - plugin guide
Diffstat (limited to 'ldap/servers/plugins/replication/windows_tot_protocol.c')
-rw-r--r--ldap/servers/plugins/replication/windows_tot_protocol.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ldap/servers/plugins/replication/windows_tot_protocol.c b/ldap/servers/plugins/replication/windows_tot_protocol.c
index 09ecbc8e..c1bca1ce 100644
--- a/ldap/servers/plugins/replication/windows_tot_protocol.c
+++ b/ldap/servers/plugins/replication/windows_tot_protocol.c
@@ -153,6 +153,12 @@ windows_tot_run(Private_Repl_Protocol *prp)
windows_private_null_dirsync_cookie(prp->agmt);
+ /* call begin total update callback */
+ winsync_plugin_call_begin_update_cb(prp->agmt,
+ windows_private_get_directory_subtree(prp->agmt),
+ windows_private_get_windows_subtree(prp->agmt),
+ 1 /* is_total == TRUE */);
+
/* get everything */
windows_dirsync_inc_run(prp);
@@ -225,6 +231,12 @@ windows_tot_run(Private_Repl_Protocol *prp)
agmt_set_consumer_ruv(prp->agmt, starting_ruv );
}
+ /* call end total update callback */
+ winsync_plugin_call_end_update_cb(prp->agmt,
+ windows_private_get_directory_subtree(prp->agmt),
+ windows_private_get_windows_subtree(prp->agmt),
+ 1 /* is_total == TRUE */);
+
done:
if (starting_ruv)
{