s4:dsdb rewrite the linked_atrributes code to commit in the end_transaction hook
authorAndrew Tridgell <tridge@samba.org>
Wed, 2 Sep 2009 07:02:56 +0000 (17:02 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 2 Sep 2009 08:19:56 +0000 (18:19 +1000)
commitca45847edab3a5897c0e0d3b4c486ad9ae0848c6
treef3cf302e919ac389aed39efe69eff35eec2200ce
parent199be936d8920fce31e18d6663f8ba36f573d26f
s4:dsdb rewrite the linked_atrributes code to commit in the end_transaction hook

linked attribute changes can come in any order. This means it is
possible for a forward link to come over the wire in DRS before the
target even exists. To make this work this patch changed the linked
attributes module to gather up all the changes it needs to make in a
linked list, then execute the changes in the end_transaction hook for
the module.

During that commit phase we also fix up all the DNs that we got by
searching for their GUID, as the objects may have moved after the
linked attribute was sent, but before the end of the transaction
source4/dsdb/samdb/ldb_modules/linked_attributes.c