Hello,
The following patch adds the code to provide a 'net leave' command to
Samba 4 for removing a machine account from a domain, as well as
libnet_leave.c to provide the necessary library code to perform the
operations. The attached code was modelled after libnet/libnet_join.c
and utils/net/net_join.c. This code does not yet delete the CN=NTDS
Settings,... container for an AD DC (libnet_join currently does not
create this entry either).
I've tested the code against Win2k3 and Win2k3 SP1 successfully. Please
let me know what you think.
Thanks,
Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SAMBA_4_0-leave.patch
Type: text/x-patch
Size: 42634 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20051031/88fe2ef5/SAMBA_4_0-leave.bin