linked attributes, DRS and abusing the ldb modules API

tridge at samba.org tridge at samba.org
Wed Sep 2 04:38:35 MDT 2009


Hi Metze,

 > I don't understand that question...
 > where is that special code?

The special code is the addition of the
DSDB_CONTROL_CURRENT_PARTITION_OID in
replmd_extended_replicated_objects() and the associated code in the
partition module to handle the case of the upstream modules already
having set that control.

What happens is that both the base partition and the leaf partitions
each get a record for the partition mount points. So during the
initial DRS replication we got an "already exists" error for the add
of the base of each leaf partition as the search code found the
object in the base partition.

The solution was to use the above control to tell the partition module
to direct the add to the specific partition that the replication was
happening on. 

One side effect of this is that if you get the GUID of the root of
each partition and then do a search for objectGUID=theguid with
search_options=2 so that you do a whole of tree search, then you get
back two hits! Andrew has created a bugzilla entry for that.

Cheers, Tridge


More information about the samba-technical mailing list