summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/replication
diff options
context:
space:
mode:
Diffstat (limited to 'ldap/servers/plugins/replication')
-rw-r--r--ldap/servers/plugins/replication/windows_inc_protocol.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/ldap/servers/plugins/replication/windows_inc_protocol.c b/ldap/servers/plugins/replication/windows_inc_protocol.c
index 88a91bce..f2e9034d 100644
--- a/ldap/servers/plugins/replication/windows_inc_protocol.c
+++ b/ldap/servers/plugins/replication/windows_inc_protocol.c
@@ -864,8 +864,12 @@ windows_inc_run(Private_Repl_Protocol *prp)
if ( run_dirsync )
{
- windows_dirsync_inc_run(prp);
- windows_private_save_dirsync_cookie(prp->agmt);
+ /* Don't run dirsync if we encountered
+ * an error when sending updates to AD. */
+ if (rc == UPDATE_NO_MORE_UPDATES) {
+ windows_dirsync_inc_run(prp);
+ windows_private_save_dirsync_cookie(prp->agmt);
+ }
run_dirsync = PR_FALSE;
}