[Samba] leaving a domain?

Michael Tokarev mjt at tls.msk.ru
Thu Jun 20 15:50:50 UTC 2024

20.06.2024 17:01, Ralph Boehme wrote:
> On 6/20/24 2:03 PM, Michael Tokarev via samba wrote:
>> How to remove this machine from a domain?
> net ads leave ...

Yeah, I tried that one right after `samba-tool domain leave` - it
complains there's no way to leave a domain if joined as a DC.
I *guess* this is the error `samba-tool domain leave` faces too,
just without proper error handling so it throws an unknown exception.

This is, in fact, the error message (from net ads leave) which prompted
me to search how to remove especially an AD-DC from a domain, and I found
`samba-tool domain demote`.



GPG Key transition (from rsa2048 to rsa4096) since 2024-04-24.
New key: rsa4096/61AD3D98ECDF2C8E  9D8B E14E 3F2A 9DD7 9199  28F1 61AD 3D98 ECDF 2C8E
Old key: rsa2048/457CE0A0804465C5  6EE1 95D1 886E 8FFB 810D  4324 457C E0A0 8044 65C5
Transition statement: http://www.corpit.ru/mjt/gpg-transition-2024.txt

More information about the samba mailing list