s3-rpc_client: Added dcerpc_lsa_open_policy.
[kai/samba.git] / source3 / rpc_client / cli_lsarpc.h
1 /* The following definitions come from rpc_client/cli_lsarpc.c  */
2
3 /**
4  * @brief Open a LSA policy.
5  *
6  * @param[in]  h        The dcerpc binding hanlde to use.
7  *
8  * @param[in]  mem_ctx  The memory context to use.
9  *
10  * @param[in]  sec_qos  Enable security quality of services.
11  *
12  * @param[in]  des_access The disired access rights to be granted.
13  *
14  * @param[out]  pol     A pointer to a rpc policy handle.
15  *
16  * @param[out]  result  A pointer for the NDR NTSTATUS error code.
17  *
18  * @return              A corresponding NTSTATUS error code for the connection.
19  */
20 NTSTATUS dcerpc_lsa_open_policy(struct dcerpc_binding_handle *h,
21                                 TALLOC_CTX *mem_ctx,
22                                 bool sec_qos,
23                                 uint32_t des_access,
24                                 struct policy_handle *pol,
25                                 NTSTATUS *result);
26 NTSTATUS rpccli_lsa_open_policy(struct rpc_pipe_client *cli,
27                                 TALLOC_CTX *mem_ctx,
28                                 bool sec_qos, uint32 des_access,
29                                 struct policy_handle *pol);
30
31 NTSTATUS rpccli_lsa_open_policy2(struct rpc_pipe_client *cli,
32                                  TALLOC_CTX *mem_ctx, bool sec_qos,
33                                  uint32 des_access, struct policy_handle *pol);
34 NTSTATUS rpccli_lsa_lookup_sids(struct rpc_pipe_client *cli,
35                                 TALLOC_CTX *mem_ctx,
36                                 struct policy_handle *pol,
37                                 int num_sids,
38                                 const struct dom_sid *sids,
39                                 char ***pdomains,
40                                 char ***pnames,
41                                 enum lsa_SidType **ptypes);
42 NTSTATUS rpccli_lsa_lookup_sids3(struct rpc_pipe_client *cli,
43                                  TALLOC_CTX *mem_ctx,
44                                  struct policy_handle *pol,
45                                  int num_sids,
46                                  const struct dom_sid *sids,
47                                  char ***pdomains,
48                                  char ***pnames,
49                                  enum lsa_SidType **ptypes);
50 NTSTATUS rpccli_lsa_lookup_names(struct rpc_pipe_client *cli,
51                                  TALLOC_CTX *mem_ctx,
52                                  struct policy_handle *pol, int num_names,
53                                  const char **names,
54                                  const char ***dom_names,
55                                  int level,
56                                  struct dom_sid **sids,
57                                  enum lsa_SidType **types);
58 NTSTATUS rpccli_lsa_lookup_names4(struct rpc_pipe_client *cli,
59                                   TALLOC_CTX *mem_ctx,
60                                   struct policy_handle *pol, int num_names,
61                                   const char **names,
62                                   const char ***dom_names,
63                                   int level,
64                                   struct dom_sid **sids,
65                                   enum lsa_SidType **types);
66
67 bool fetch_domain_sid( char *domain, char *remote_machine, struct dom_sid *psid);
68