[cifs-protocol] Behavior explanation on subtree delete control behavior with iscriticalsystemobject
mat at samba.org
Fri Aug 12 15:18:59 MDT 2011
On 12/08/2011 07:56, Hongwei Sun wrote:
> Hi, Matthieu,
> I have trouble to decrypt the LDAP packets in the trace. Have you used Wireshark to do that?
With the keytab provided you do
wireshark -K path_to_keytab trace.pcap,
Wireshark must be configurated to decrypt krb5 blobs (see
> Did the packet 1848 define a delete operation on record #1 with LDAP_SERVER_TREE_DELETE_OID specified? Have you checked that both records are not in the AD any more after tree deletion ?
Yes check the attached screenshot.
And yes all the objects are removed.
I've the feeling that the isCriticalObject rule apply only for the
subobjects, that is to say if I CN=foo,CN=bar,DC=domain,DC=tld with
isCriticalObject then if I try to use the subtree
on CN=bar,DC=domain,DC=tld it should fail. But if the isCriticalObject
is only on CN=bar,DC=domain,DC=tld then the use of the deltree is permited.
> -----Original Message-----
> From: Matthieu Patou [mailto:mat at samba.org]
> Sent: Tuesday, August 09, 2011 4:08 PM
> To: Interoperability Documentation Help; pfif at tridgell.net; cifs-protocol at samba.org
> Subject: Behavior explanation on subtree delete control behavior with iscriticalsystemobject
> I found an interesting problem
> In MS-ADTS it is said:
> 188.8.131.52.5.7.2 Tree-delete Constraints
> All regular delete operation constraints apply on each object being deleted.
> The tree-delete operation may not be applied to an NC root.
> Objects with isCriticalSystemObject attribute equal to true may not be deleted by the tree-delete operation (this also applies to objects in the subtree being deleted).
> This constraint is checked
> object-by-object, and deletion stops if some deletion would violate this constraint. Because, as explained in the next section, deleted objects never have children, the result after deletion stops due to this constraint is a tree. The resultant tree may not be the same as the original tree because some objects may have been deleted prior to the failure.
> My understanding is that if you try to deleted an object that has the isCriticalSystemObject attribute set to TRUE or one of the object bellow in its tree then the operation should failed.
> Did I get the meaning right ?
> If so can you explain me how with this configuration:
> ./bin/ldbsearch -H ldap://172.16.100.27 -U administrator%totoTATA321 -b "CN=ARES,OU=Domain Controllers,DC=w2k8r2,DC=home,DC=matws,DC=net"
> # record 1
> dn: CN=ARES,OU=Domain Controllers,DC=w2k8r2,DC=home,DC=matws,DC=net
> isCriticalSystemObject: TRUE
> # record 2
> dn: CN=RID Set,CN=ARES,OU=Domain
> The delete with subtree control on the following trace at packet 1848 is working.
> Matthieu Patou
> Samba Team http://samba.org
> Private repo http://git.samba.org/?p=mat/samba.git;a=summary
Samba Team http://samba.org
Private repo http://git.samba.org/?p=mat/samba.git;a=summary
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 185345 bytes
Desc: not available
More information about the cifs-protocol