s3:libnet_join: call saf_join_store() after a the join.
[kai/samba.git] / source3 / libnet / libnet_join.c
index 908fb78ab4ddffaa439943cf4970648ad019aa6d..fb8bc1948fdc7c61d4192212141d74bee0abee56 100644 (file)
@@ -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) {