s3-rpcclient: allow to define validation level for samlogon.
[obnox/samba/samba-obnox.git] / source3 / rpc_client / cli_netlogon.h
1 /* The following definitions come from rpc_client/cli_netlogon.c  */
2
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                                    uint16_t validation_level,
19                                    int logon_type);
20 NTSTATUS rpccli_netlogon_sam_network_logon(struct rpc_pipe_client *cli,
21                                            TALLOC_CTX *mem_ctx,
22                                            uint32 logon_parameters,
23                                            const char *server,
24                                            const char *username,
25                                            const char *domain,
26                                            const char *workstation,
27                                            const uint8 chal[8],
28                                            DATA_BLOB lm_response,
29                                            DATA_BLOB nt_response,
30                                            struct netr_SamInfo3 **info3);
31 NTSTATUS rpccli_netlogon_sam_network_logon_ex(struct rpc_pipe_client *cli,
32                                               TALLOC_CTX *mem_ctx,
33                                               uint32 logon_parameters,
34                                               const char *server,
35                                               const char *username,
36                                               const char *domain,
37                                               const char *workstation,
38                                               const uint8 chal[8],
39                                               DATA_BLOB lm_response,
40                                               DATA_BLOB nt_response,
41                                               struct netr_SamInfo3 **info3);
42 NTSTATUS rpccli_netlogon_set_trust_password(struct rpc_pipe_client *cli,
43                                             TALLOC_CTX *mem_ctx,
44                                             const char *account_name,
45                                             const unsigned char orig_trust_passwd_hash[16],
46                                             const char *new_trust_pwd_cleartext,
47                                             const unsigned char new_trust_passwd_hash[16],
48                                             enum netr_SchannelType sec_channel_type);
49