s3:libads: Add net ads leave keep-account option
authorJustin Stephenson <jstephen@redhat.com>
Wed, 27 Jun 2018 15:32:31 +0000 (11:32 -0400)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 30 Jul 2018 05:34:11 +0000 (07:34 +0200)
commitd881f0c8a0ce2fc7cabf1966c5724e72c70d6694
treefbb163a47236598373fa3d8e453b917f19b2eb0a
parente3ce1a2dfc4cbba4bf22381b91e9a14c8f240f5d
s3:libads: Add net ads leave keep-account option

Add the ability to leave the domain with --keep-account argument to avoid
removal of the host machine account.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13498

Signed-off-by: Justin Stephenson <jstephen@redhat.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
docs-xml/manpages/net.8.xml
source3/libnet/libnet_join.c
source3/utils/net.c
source3/utils/net.h
source3/utils/net_ads.c