[cifs-protocol] show-recycled and show-deleted LDAP controls
mat at samba.org
Wed Feb 16 00:05:40 MST 2011
> In the network trace, both LDAP Search requests in packet 20 (LDAP_SERVER_SHOW_RECYCLED_OID ) and 42 (LDAP_SERVER_SHOW_RECYCLED_OID )
For packet 42 it's show deleted control unless I'm misunderstanding.
> have Filter: (isDeleted=TRUE). Because of this filter, all search result entries (packets 21 and 43) have isDeleted=TRUE, but not all of them have isRecycled present.
Sure, but what is worth noting and what was my question is why when you
only specify the the show deleted you have also the recycled as it's the
case in packet 43.
> The show-recycled or show-deleted LDAP controls define the objects that are visible to the operation. Then the filter is applied to those objects to get the search results.
> In order to retrieve only recycled objects, I presume you need:
> + Filter: (isRecycled=TRUE)
> + ControlType: 1.2.840.1135220.127.116.114 (LDAP_SERVER_SHOW_RECYCLED_OID)
Why not but can you explain me why if I specify just
1.2.840.113518.104.22.1687 (LDAP_SERVER_SHOW_DELETED_OID) I have potentially
entries that are recycled and those who are not.
I would expect the following logic:
1) no recycled or deleted control => return objects that comply to the
filter and have (isDeleted != True or isRecycled != True)
2) show deleted control =>return objects that comply to the filter and
have isRecycled != True
3) show recycled control =>return objects that comply to the filter
Can you check ?
> -----Original Message-----
> From: Edgar Olougouna
> Sent: Friday, February 04, 2011 5:21 PM
> To: 'mat at samba.org'; pfif at tridgell.net; cifs-protocol at samba.org
> Subject: RE: show-recycled and show-deleted LDAP controls
> I am taking care of this and will update you as soon I complete my research.
> -----Original Message-----
> From: Matthieu Patou [mailto:mat at samba.org]
> Sent: Friday, February 04, 2011 5:13 AM
> To: pfif at tridgell.net; Interoperability Documentation Help; cifs-protocol at samba.org
> Subject: show-recycled and show-deleted LDAP controls
> Dear dochelp team,
> While making some tests with Windows 2008R2 I found something strange:
> I get the same results if I provide the show-recycled OID
> 1.2.840.113522.214.171.1244 or the show-deleted OID 1.2.840.1135126.96.36.1997.
> I would expect the first one to return the object that are recycled and deleted and the second one just the one that are deleted (so with isRecycled=No or without attribute isRecycled).
> Find attached a capture between my computer and the server with both controls.
> Can you explain me what I'm getting wrong ?
> 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
More information about the cifs-protocol