s3:libsmb/namequery.c: don't leak 'pserver'
[Samba/gebeck_regimport.git] / source3 / rpc_client / cli_lsarpc.h
blobd971ee9b588379a5602a466cbf647f39779c98a9
1 /* The following definitions come from rpc_client/cli_lsarpc.c */
3 NTSTATUS rpccli_lsa_open_policy(struct rpc_pipe_client *cli,
4 TALLOC_CTX *mem_ctx,
5 bool sec_qos, uint32 des_access,
6 struct policy_handle *pol);
7 NTSTATUS rpccli_lsa_open_policy2(struct rpc_pipe_client *cli,
8 TALLOC_CTX *mem_ctx, bool sec_qos,
9 uint32 des_access, struct policy_handle *pol);
10 NTSTATUS rpccli_lsa_lookup_sids(struct rpc_pipe_client *cli,
11 TALLOC_CTX *mem_ctx,
12 struct policy_handle *pol,
13 int num_sids,
14 const struct dom_sid *sids,
15 char ***pdomains,
16 char ***pnames,
17 enum lsa_SidType **ptypes);
18 NTSTATUS rpccli_lsa_lookup_sids3(struct rpc_pipe_client *cli,
19 TALLOC_CTX *mem_ctx,
20 struct policy_handle *pol,
21 int num_sids,
22 const struct dom_sid *sids,
23 char ***pdomains,
24 char ***pnames,
25 enum lsa_SidType **ptypes);
26 NTSTATUS rpccli_lsa_lookup_names(struct rpc_pipe_client *cli,
27 TALLOC_CTX *mem_ctx,
28 struct policy_handle *pol, int num_names,
29 const char **names,
30 const char ***dom_names,
31 int level,
32 struct dom_sid **sids,
33 enum lsa_SidType **types);
34 NTSTATUS rpccli_lsa_lookup_names4(struct rpc_pipe_client *cli,
35 TALLOC_CTX *mem_ctx,
36 struct policy_handle *pol, int num_names,
37 const char **names,
38 const char ***dom_names,
39 int level,
40 struct dom_sid **sids,
41 enum lsa_SidType **types);
43 bool fetch_domain_sid( char *domain, char *remote_machine, struct dom_sid *psid);