[cifs-protocol] Replicating deleted object procedure clarifications
kamenim at samba.org
Tue May 18 06:32:57 MDT 2010
I am currently trying to refactor Delete object implementation in Samba and
I need some help
with algorithm used for deleting objects and how the deletion is replicated
to other DCs.
ProcessGetNCChangesReply [MS-DRSR] -
UpdateObject [MS-DRSR] -
Operation [MS-ADTS] -
0. We have two DCs configuration.
We have an OU object with following props:
1. We delete this OU on DC1. The state of this object on each dc should be
2. Replication is triggered from DC1 to DC2.
Now, according to UpdateObject() procedure, we will identify that Object's
DN has changed from
Hence we will modify object's DN (calling PerformModifyDNOperation()
Which will make this object a Deleted-object right?
While progressing further in UpdateObject() procedure, we will check and
see, that 'isDeleted'
attribute value is TRUE, so we shall call RemoveObj() procedure. At this
point I am a little bit puzzled as
there are two possible outcomes from this procedure:
1. Object's RDN should be transformed to a delete-mangled RDN. So we should
end with an RDN like:
2. Or, as the object is already under "Deleted Object" container (moved
there by previous call to PerformModifyOperation()),
RemoveObj() procedure should delete it further - i.e. if the object is a
Tombstone, it will be completely removed.
Sorry that my description gets so messy.
Basically what UpdateObject() states is that first we should execute
PerformModifyOperation() and then RemoveObj().
Which is a little bit confusing, as PerformModifyOperation() will turn the
object into a Deleted-object.
Calling RemoveObj() later will actually act on already modified object, so I
wonder - how does RemoveObj()
knows that we just converted the object and this object should not be
Another possibility is for PeformModifyOperation() to determine that target
DN will move the object under
"Deleted Objects" container, and in this case to modify only Attribute
values on the object, but not to call
kamen.mazdrashki at postpath.com
CISCO SYSTEMS BULGARIA EOOD
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cifs-protocol