From 5ed365411278ca19d69216ca969e91c4725c2c08 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 18 May 2010 18:26:03 +0200 Subject: s3-rpc_client: move protos to cli_netlogon.h Guenther --- source3/rpc_client/cli_netlogon.c | 1 + source3/rpc_client/cli_netlogon.h | 48 +++++++++++++++++++++++++++++++++++++++ source3/rpc_client/cli_pipe.c | 1 + 3 files changed, 50 insertions(+) create mode 100644 source3/rpc_client/cli_netlogon.h (limited to 'source3/rpc_client') diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index 3c4ddc21a4..781fa05dc5 100644 --- a/source3/rpc_client/cli_netlogon.c +++ b/source3/rpc_client/cli_netlogon.c @@ -23,6 +23,7 @@ #include "includes.h" #include "../libcli/auth/libcli_auth.h" #include "../librpc/gen_ndr/cli_netlogon.h" +#include "rpc_client/cli_netlogon.h" /**************************************************************************** Wrapper function that uses the auth and auth2 calls to set up a NETLOGON diff --git a/source3/rpc_client/cli_netlogon.h b/source3/rpc_client/cli_netlogon.h new file mode 100644 index 0000000000..107c222cee --- /dev/null +++ b/source3/rpc_client/cli_netlogon.h @@ -0,0 +1,48 @@ +/* The following definitions come from rpc_client/cli_netlogon.c */ + +NTSTATUS rpccli_netlogon_setup_creds(struct rpc_pipe_client *cli, + const char *server_name, + const char *domain, + const char *clnt_name, + const char *machine_account, + const unsigned char machine_pwd[16], + enum netr_SchannelType sec_chan_type, + uint32_t *neg_flags_inout); +NTSTATUS rpccli_netlogon_sam_logon(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + uint32 logon_parameters, + const char *domain, + const char *username, + const char *password, + const char *workstation, + int logon_type); +NTSTATUS rpccli_netlogon_sam_network_logon(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + uint32 logon_parameters, + const char *server, + const char *username, + const char *domain, + const char *workstation, + const uint8 chal[8], + DATA_BLOB lm_response, + DATA_BLOB nt_response, + struct netr_SamInfo3 **info3); +NTSTATUS rpccli_netlogon_sam_network_logon_ex(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + uint32 logon_parameters, + const char *server, + const char *username, + const char *domain, + const char *workstation, + const uint8 chal[8], + DATA_BLOB lm_response, + DATA_BLOB nt_response, + struct netr_SamInfo3 **info3); +NTSTATUS rpccli_netlogon_set_trust_password(struct rpc_pipe_client *cli, + TALLOC_CTX *mem_ctx, + const char *account_name, + const unsigned char orig_trust_passwd_hash[16], + const char *new_trust_pwd_cleartext, + const unsigned char new_trust_passwd_hash[16], + enum netr_SchannelType sec_channel_type); + diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index 210f1389fd..038e33ae8a 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -40,6 +40,7 @@ #include "../libcli/auth/spnego.h" #include "smb_krb5.h" #include "ntlmssp.h" +#include "rpc_client/cli_netlogon.h" #undef DBGC_CLASS #define DBGC_CLASS DBGC_RPC_CLI -- cgit