diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-09-20 16:27:24 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-09-20 16:29:38 -0700 |
commit | bfddb6816f50f629d29e476327a921212fd63a2d (patch) | |
tree | 47cd6a8684b3106b38facb1ea0697252a97ba452 /source4/param/provision.h | |
parent | 1d4a16acd7e6c5bd664f2276d4d8e86efb36baaf (diff) | |
download | samba-bfddb6816f50f629d29e476327a921212fd63a2d.tar.gz samba-bfddb6816f50f629d29e476327a921212fd63a2d.tar.xz samba-bfddb6816f50f629d29e476327a921212fd63a2d.zip |
s4:provision Use code to store domain join in 'net join' as well
This ensures we only have one codepath to store the secret, and
therefore that we have a single choke point for setting the
saltPrincipal, which we were previously skipping.
Andrew Bartlett
Diffstat (limited to 'source4/param/provision.h')
-rw-r--r-- | source4/param/provision.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/param/provision.h b/source4/param/provision.h index af9685d292f..c3b3bb88d80 100644 --- a/source4/param/provision.h +++ b/source4/param/provision.h @@ -44,8 +44,24 @@ struct provision_result { struct loadparm_context *lp_ctx; }; +struct provision_store_self_join_settings { + const char *domain_name; + const char *realm; + const char *netbios_name; + const char *account_name; + enum netr_SchannelType secure_channel_type; + const char *machine_password; + int key_version_number; + struct dom_sid *domain_sid; +}; + NTSTATUS provision_bare(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, struct provision_settings *settings, struct provision_result *result); +NTSTATUS provision_store_self_join(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, + struct tevent_context *ev_ctx, + struct provision_store_self_join_settings *settings, + const char **error_string); + #endif /* _PROVISION_H_ */ |