We should not store the secrets before we did all remote changes
(except the optional dns updates).
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12782
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit
a922e01baeccedc3ffc8a893f1d6072bb203220f)
saf_join_store(r->out.dns_domain_name, r->in.dc_name);
}
+ if (!libnet_join_joindomain_store_secrets(mem_ctx, r)) {
+ return WERR_NERR_SETUPNOTJOINED;
+ }
+
werr = do_JoinConfig(r);
if (!W_ERROR_IS_OK(werr)) {
return werr;
goto done;
}
- if (!libnet_join_joindomain_store_secrets(mem_ctx, r)) {
- werr = WERR_NERR_SETUPNOTJOINED;
- goto done;
- }
-
werr = WERR_OK;
done: