summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorJustin Stephenson <jstephen@redhat.com>2018-06-27 11:32:31 -0400
committerAndrew Bartlett <abartlet@samba.org>2018-07-30 07:34:11 +0200
commitd881f0c8a0ce2fc7cabf1966c5724e72c70d6694 (patch)
treefbb163a47236598373fa3d8e453b917f19b2eb0a /source3/libnet
parente3ce1a2dfc4cbba4bf22381b91e9a14c8f240f5d (diff)
downloadsamba-d881f0c8a0ce2fc7cabf1966c5724e72c70d6694.tar.gz
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>
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_join.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index a9405e8d288..27fc5135442 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -2868,6 +2868,8 @@ static WERROR libnet_DomainUnjoin(TALLOC_CTX *mem_ctx,
return ntstatus_to_werror(status);
}
+ r->out.dns_domain_name = talloc_strdup(mem_ctx,
+ r->in.domain_name);
r->out.disabled_machine_account = true;
}