From d881f0c8a0ce2fc7cabf1966c5724e72c70d6694 Mon Sep 17 00:00:00 2001 From: Justin Stephenson Date: Wed, 27 Jun 2018 11:32:31 -0400 Subject: 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 Reviewed-by: Andrew Bartlett Reviewed-by: Alexander Bokovoy --- source3/libnet/libnet_join.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/libnet') 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; } -- cgit v1.2.1