[Samba] deleted objects conteners and keep a samba in good working order

Andrew Bartlett abartlet at samba.org
Wed Jun 1 08:58:14 UTC 2016


On Tue, 2016-05-31 at 15:36 +0200, Sam wrote:
> Hello,
> 
> Can I delete the values stored in the differents "deleted object" 
> conteners? (by using the "active directory explorer" software for
> example )
> 
> In my case it's about 3000 objets.... ( old computers, old groups,
> old 
> users...)
> 
> I lauched this command to count it:
> 
> ldbsearch --cross-ncs --show-deleted -H
> /var/lib/samba/private/sam.ldb | 
> grep "\0ADEL"
> 
> the database comes from an old windows 2000 AD, and I can see that no
> cleanning were never made.
> 
> ( it does not surprise me because an automatic cleaning exist only
> since 
> windows 2008R2 )
> 
> Also, are there any good practice to do regularly to keep a samba in 
> good working order.

The old objects should be expunged after 180 days, or earlier if you
change the settings.  They need to be kept to ensure they do not re
-appear if an offline replica re-joins the replication state.

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba






More information about the samba mailing list