Bug 13269 - RODC may skip objects during replication due to naming conflicts
Summary: RODC may skip objects during replication due to naming conflicts
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: AD: LDB/DSDB/SAMDB (show other bugs)
Version: unspecified
Hardware: All All
: P5 normal (vote)
Target Milestone: 4.8
Assignee: Karolin Seeger
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-14 03:18 UTC by Garming Sam
Modified: 2018-02-28 16:13 UTC (History)
1 user (show)

See Also:


Attachments
Patch against returning LDB_SUCCESS upon failure (1.51 KB, patch)
2018-02-14 04:20 UTC, Douglas Bagnall
no flags Details
Patch for 4.8 cherry-picked from master (18.76 KB, patch)
2018-02-27 11:08 UTC, Ralph Böhme
metze: review+
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Garming Sam 2018-02-14 03:18:52 UTC
On a normal DC, naming conflicts result in conflict records, but on an RODC, the conflict records cannot be created.

This was meant to cause replication to fail, however, because an error code was not being set, it was possible for RODCs to have fewer objects or updates than the highwatermark or the uptodateness vector would indicate.


This lead to errors like:
Failed to apply records: replmd_replicated_apply_add: error during DRS repl ADD: No objectClass found in replPropertyMetaData

Which would occur because an object had been skipped.

Original thread on samba-technical:
https://lists.samba.org/archive/samba-technical/2018-January/124938.html
Comment 1 Douglas Bagnall 2018-02-14 04:20:13 UTC
Created attachment 13960 [details]
Patch against returning LDB_SUCCESS upon failure

There are a number of places where we have `goto failed` without the return code being set. 

We could fix them all individually, or we could do something like this, catching potential future cases, or we could do both.
Comment 2 Ralph Böhme 2018-02-27 11:08:35 UTC
Created attachment 14005 [details]
Patch for 4.8 cherry-picked from master
Comment 3 Stefan Metzmacher 2018-02-27 16:12:53 UTC
Pushed to autobuild-v4-8-test.
Comment 4 Stefan Metzmacher 2018-02-28 16:13:24 UTC
(In reply to Stefan Metzmacher from comment #3)

Pushed to v4-8-test