s3:libsmb/namequery.c: don't leak 'pserver'
[Samba/gebeck_regimport.git] / source3 / rpc_client / cli_netlogon.h
blob107c222ceec8ede581beed2fcc78dea47c4816ba
1 /* The following definitions come from rpc_client/cli_netlogon.c */
3 NTSTATUS rpccli_netlogon_setup_creds(struct rpc_pipe_client *cli,
4 const char *server_name,
5 const char *domain,
6 const char *clnt_name,
7 const char *machine_account,
8 const unsigned char machine_pwd[16],
9 enum netr_SchannelType sec_chan_type,
10 uint32_t *neg_flags_inout);
11 NTSTATUS rpccli_netlogon_sam_logon(struct rpc_pipe_client *cli,
12 TALLOC_CTX *mem_ctx,
13 uint32 logon_parameters,
14 const char *domain,
15 const char *username,
16 const char *password,
17 const char *workstation,
18 int logon_type);
19 NTSTATUS rpccli_netlogon_sam_network_logon(struct rpc_pipe_client *cli,
20 TALLOC_CTX *mem_ctx,
21 uint32 logon_parameters,
22 const char *server,
23 const char *username,
24 const char *domain,
25 const char *workstation,
26 const uint8 chal[8],
27 DATA_BLOB lm_response,
28 DATA_BLOB nt_response,
29 struct netr_SamInfo3 **info3);
30 NTSTATUS rpccli_netlogon_sam_network_logon_ex(struct rpc_pipe_client *cli,
31 TALLOC_CTX *mem_ctx,
32 uint32 logon_parameters,
33 const char *server,
34 const char *username,
35 const char *domain,
36 const char *workstation,
37 const uint8 chal[8],
38 DATA_BLOB lm_response,
39 DATA_BLOB nt_response,
40 struct netr_SamInfo3 **info3);
41 NTSTATUS rpccli_netlogon_set_trust_password(struct rpc_pipe_client *cli,
42 TALLOC_CTX *mem_ctx,
43 const char *account_name,
44 const unsigned char orig_trust_passwd_hash[16],
45 const char *new_trust_pwd_cleartext,
46 const unsigned char new_trust_passwd_hash[16],
47 enum netr_SchannelType sec_channel_type);