}
#endif /* HAVE_ADS */
+ if (r->in.provision_computer_account_only) {
+ /*
+ * When we only provision a computer account we are done here - gd.
+ */
+ return WERR_OK;
+ }
+
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);
return ntstatus_to_werror(status);
}
- werr = libnet_join_check_config(mem_ctx, r);
- if (!W_ERROR_IS_OK(werr)) {
- goto done;
+ if (!r->in.provision_computer_account_only) {
+ werr = libnet_join_check_config(mem_ctx, r);
+ if (!W_ERROR_IS_OK(werr)) {
+ goto done;
+ }
}
#ifdef HAVE_ADS
goto done;
}
+ if (r->in.provision_computer_account_only) {
+ /*
+ * When we only provision a computer account we are done here - gd.
+ */
+ goto done;
+ }
+
if (r->in.join_flags & WKSSVC_JOIN_FLAGS_JOIN_TYPE) {
werr = libnet_join_post_verify(mem_ctx, r);
if (!W_ERROR_IS_OK(werr)) {
[in] netr_SchannelType secure_channel_type,
[in,noprint] messaging_context *msg_ctx,
[in] uint32 desired_encryption_types,
+ [in] boolean8 provision_computer_account_only,
[out] string account_name,
[out] string netbios_domain_name,
[out] string dns_domain_name,