From 8314ce63ff77f0472d4249adcea87123b3b3f5c2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 27 Oct 2008 19:40:23 +0100 Subject: [PATCH] s3:libnet_join: call saf_join_store() after a the join. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit metze Signed-off-by: Stefan Metzmacher Signed-off-by: Günther Deschner (similar to commit feef594d275881466e2c3f59c0ff54609a9cc53b) (cherry picked from commit 6a993cb333675f4079d439fa334edee2df604933) --- source/libnet/libnet_join.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/libnet/libnet_join.c b/source/libnet/libnet_join.c index d53cb689122..1032331cc75 100644 --- a/source/libnet/libnet_join.c +++ b/source/libnet/libnet_join.c @@ -1521,7 +1521,10 @@ static WERROR libnet_join_post_processing(TALLOC_CTX *mem_ctx, return WERR_OK; } - saf_store(r->in.domain_name, r->in.dc_name); + saf_join_store(r->out.netbios_domain_name, r->in.dc_name); + if (r->out.dns_domain_name) { + saf_join_store(r->out.dns_domain_name, r->in.dc_name); + } #ifdef WITH_ADS if (r->out.domain_is_ad) { -- 2.11.4.GIT