return ntstatus_to_werror(status);
}
- if (!r->in.provision_computer_account_only) {
- werr = libnet_join_check_config(mem_ctx, r);
- if (!W_ERROR_IS_OK(werr)) {
+ werr = libnet_join_check_config(mem_ctx, r);
+ if (!W_ERROR_IS_OK(werr)) {
+ if (!r->in.provision_computer_account_only) {
goto done;
}
+ /* do not fail when only provisioning */
}
#ifdef HAVE_ADS
return ntstatus_to_werror(status);
}
+ werr = libnet_join_check_config(mem_ctx, r);
+ if (!W_ERROR_IS_OK(werr)) {
+ return werr;
+ }
+
return WERR_OK;
#if 0
/* the following fields are currently not filled in */