Hi, I can search for deleted Objects in Samba-AD with: ldbsearch -H ldap://dc01 -U administrator --show-deleted cn=*\\0ADEL:* sAMAccountName does anyone know a solution to search for deleted Objects with ldapsearch? Not only to search for but also find all deleted objects ;-) Stefan -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature.asc Type: application/pgp-signature Size: 236 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20241205/34e435f1/OpenPGP_signature.sig>
On Thu, 5 Dec 2024 10:12:40 +0100 Stefan Kania via samba <samba at lists.samba.org> wrote:> Hi, > > I can search for deleted Objects in Samba-AD with: > ldbsearch -H ldap://dc01 -U administrator --show-deleted > cn=*\\0ADEL:* sAMAccountName > does anyone know a solution to search for deleted Objects with > ldapsearch? Not only to search for but also find all deleted objects > ;-) > > Stefan > >Its an OID ;-) root at devstation:~# ldapsearch -v -Y GSSAPI -R SAMDOM.EXAMPLE.COM -H ldap://rpidc1.samdom.example.com -b 'CN=Deleted Objects,DC=samdom,DC=example,DC=com' -E '!1.2.840.113556.1.4.417' -s sub '(objectClass=*)' distinguishedName Rowland
Apparently Analagous Threads
- Search for deleted objects with ldapsearch
- pam_winbind Appears to need a Network Connection to Succeed at Offline Authentication
- can't connect ldapsearch with samba 4
- Using Samba AD/DC as an Active Directory OAuth provider for OpenShift
- Ldapsearch against Samba AD returns records outside the search base