[Samba] samba-tool computer delete does not work
Douglas Bagnall
douglas.bagnall at catalyst.net.nz
Tue Nov 19 21:35:40 UTC 2024
On 19/11/24 02:40, Heinz Hölzl via samba wrote:
> hi,
>
> I have to delete about 6000 old machine accounts.
>
> samba-tool computer delete RESERVE23 does not end.
What this command does is delete the record itself, then tries to delete
related DNS records.
I think what is happening is the initial delete is working, but DNS is
not, and samba-tool is left waiting for a response.
To verify this theory:
1. check the account has a dNSHostName attribute
2. look up that adress with `dig` or something.
If it hangs, then DNS is not working.
> when I interrupt it with CRTL + C, the PC is deleted.
> deleting the computer accounts with RSAT works.
>
> can i also delete the computer accounts with ldapdelete?
Probably. The DNS records will not be cleaned up, but they weren't being
anyway with samba-tool hanging.
Douglas
More information about the samba
mailing list