another large change to the linked_attribute module
commitd3d6713c599fa74f5fdd890bd00ab0dd721749d8
authorAndrew Tridgell <tridge@samba.org>
Thu, 3 Sep 2009 08:36:02 +0000 (3 18:36 +1000)
committerAndrew Tridgell <tridge@samba.org>
Thu, 3 Sep 2009 08:36:10 +0000 (3 18:36 +1000)
tree6b5d993931f6da84f2e6b3ded4b6e6143901d11d
parentb72b8f6e7d6a83999153b71edd6f50a1803eff95
another large change to the linked_attribute module

This one copes with deleted objects where linked attributes have been
set on the module. We hit this when we do the ldb wipe at the start of
a provision, which trigers linked attribute updates, but for objects
that have disappeared. We need to ensure that the linked attribute
updates only happen on the right object, and if the object gets
re-created (as happens with a provision) then it is not the right
object.

To cope with this we record the GUID of the object when the operation
that triggered the linked attribute update comes in, and then find the
DN by suing that GUID when we apply the change in the prepare commit
hook.
source4/dsdb/samdb/ldb_modules/linked_attributes.c