Web lists-archives.com

Re: [Samba] recover deleted objects




I forgot :-)
I'm using Debina9 with Samba 4.8.3 (Louis packages). I have two DCs and
one RODC. No changes to the smb.conf.


Am 10.08.2018 um 20:47 schrieb Stefan Kania via samba:
> Hello everybody
> 
> I would like to recover a deleted object. I created a user, then I
> deleted this user and search for the deleted object with:
> -------------
> ldbsearch --url=/var/lib/samba/private/sam.ldb --show-deleted
> --cross-ncs CN=no-bin\*
> 
> 
> # record 1
> dn: CN=no-bin\0ADEL:0b2f3fb3-5b25-455f-979c-bd02569c832a,CN=Deleted
> Objects,DC=example,DC=net
> ...
> ------------
> so the delete object is still there. Then I try to rename the object:
> ------------
> root@addc-01:~#  ldbrename -H ldap://sambabuch -k yes --show-deleted
> --cross-ncs
> 'CN=no-bin\0ADEL:0b2f3fb3-5b25-455f-979c-bd02569c832a,CN=Deleted
> Objects,DC=example,DC=net' "cn=no-bin,cn=users,dc=example,dc=net"
> rename of
> 'CN=no-bin\0ADEL:0b2f3fb3-5b25-455f-979c-bd02569c832a,CN=Deleted
> Objects,DC=example,DC=net' to 'cn=no-bin,cn=users,dc=example,dc=net'
> failed - LDAP error 32 LDAP_NO_SUCH_OBJECT -  <00002030: ldb_wait from
> ../source4/ldap_server/ldap_backend.c:486 with LDB_WAIT_ALL: No such
> object (32)> <>
> ------------
> 
> Did I miss something? I haven'd done this for years. Is ther a new way
> to do it?
> 
> Stefan
> 
> 
> 




Attachment: signature.asc
Description: OpenPGP digital signature

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba