[Samba] leaving a domain?
Kees van Vloten
keesvanvloten at gmail.com
Thu Jun 20 12:06:59 UTC 2024
Op 20-06-2024 om 14:03 schreef Michael Tokarev via samba:
> Hi!
>
> I joined a newly installed samba (4.20.1) server to a domain, - just
> testing
> things. Now I want to remove this test server from a domain, but I
> can't:
>
>
> root at svdcm2:/# samba-tool domain leave -U tls\\mjt-adm
> WARNING: Using passwords on command line is insecure. Installing the
> setproctitle python module will hide these from shortly after program
> start.
> Password for [TLS\mjt-adm]:
> ERROR(<class 'SystemError'>): uncaught exception - <method 'leave' of
> 'net_s3.Net' objects> returned a result with an exception set
> File "/usr/lib/python3/dist-packages/samba/netcmd/__init__.py", line
> 285, in _run
> return self.run(*args, **kwargs)
> ^^^^^^^^^^^^^^^^^^^^^^^^^
> File "/usr/lib/python3/dist-packages/samba/netcmd/domain/leave.py",
> line 59, in run
> s3_net.leave(keep_account)
>
> (all tools also display this out-of-context warning about using
> passwords on command line,
> which I don't do).
>
> How to remove this machine from a domain?
I would just remove the computer-account on a DC...
>
> Thanks,
>
> /mjt
>
More information about the samba
mailing list