If you use 'net ads leave -S mydomaincontrollernumberone to leave your domain on DC 'mydomaincontrollernumberone.example.com' doesn't work cause it is two long for a NetBIOS name an so there is no alias in the KDC for it. So we need to create a FQDN if a hostname is given.
Created attachment 10309 [details] v4-1-test patch
Created attachment 10310 [details] v4-0-test patch
Comment on attachment 10309 [details] v4-1-test patch LGTM.
Comment on attachment 10310 [details] v4-0-test patch LGTM.
Re-assigning to Karolin for inclusion in 4.1.next, 4.0.next.
Pushed to autobuild-v4-[0|1]-test.
Pushed to both branches. Closing out bug report. Thanks!