diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-08-07 11:27:25 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 12:47:07 +0100 |
commit | 14ceb7b501fce6623be284cbcceb573fd2e10d3a (patch) | |
tree | 74899f7f050c7c626c2c2154f4c181d54443228c /source3/rpc_client/cli_netlogon.h | |
parent | 5adfc5f9f737c003b84b0187fa17b9fc3784442e (diff) | |
download | samba-14ceb7b501fce6623be284cbcceb573fd2e10d3a.tar.gz samba-14ceb7b501fce6623be284cbcceb573fd2e10d3a.tar.xz samba-14ceb7b501fce6623be284cbcceb573fd2e10d3a.zip |
s3:rpc_client: add rpccli_{create,setup}_netlogon_creds()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpc_client/cli_netlogon.h')
-rw-r--r-- | source3/rpc_client/cli_netlogon.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_netlogon.h b/source3/rpc_client/cli_netlogon.h index ad59d5b203..82e0923039 100644 --- a/source3/rpc_client/cli_netlogon.h +++ b/source3/rpc_client/cli_netlogon.h @@ -23,6 +23,10 @@ #ifndef _RPC_CLIENT_CLI_NETLOGON_H_ #define _RPC_CLIENT_CLI_NETLOGON_H_ +struct cli_state; +struct messaging_context; +struct netlogon_creds_cli_context; + /* The following definitions come from rpc_client/cli_netlogon.c */ NTSTATUS rpccli_netlogon_setup_creds(struct rpc_pipe_client *cli, @@ -33,6 +37,18 @@ NTSTATUS rpccli_netlogon_setup_creds(struct rpc_pipe_client *cli, const unsigned char machine_pwd[16], enum netr_SchannelType sec_chan_type, uint32_t *neg_flags_inout); +NTSTATUS rpccli_create_netlogon_creds(const char *server_computer, + const char *server_netbios_domain, + const char *client_account, + enum netr_SchannelType sec_chan_type, + struct messaging_context *msg_ctx, + TALLOC_CTX *mem_ctx, + struct netlogon_creds_cli_context **netlogon_creds); +NTSTATUS rpccli_setup_netlogon_creds(struct cli_state *cli, + struct netlogon_creds_cli_context *netlogon_creds, + bool force_reauth, + struct samr_Password current_nt_hash, + const struct samr_Password *previous_nt_hash); NTSTATUS rpccli_netlogon_sam_logon(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32 logon_parameters, |