s3:winbind: Convert WINBINDD_SET_MAPPING to the new API
[Samba/aatanasov.git] / source3 / librpc / gen_ndr / cli_wbint.h
blobe9408b44f93bcd89be1ce7726296c80951aebfce
1 #include "librpc/gen_ndr/ndr_wbint.h"
2 #ifndef __CLI_WBINT__
3 #define __CLI_WBINT__
4 struct tevent_req *rpccli_wbint_Ping_send(TALLOC_CTX *mem_ctx,
5 struct tevent_context *ev,
6 struct rpc_pipe_client *cli,
7 uint32_t _in_data /* [in] */,
8 uint32_t *_out_data /* [out] [ref] */);
9 NTSTATUS rpccli_wbint_Ping_recv(struct tevent_req *req,
10 TALLOC_CTX *mem_ctx);
11 NTSTATUS rpccli_wbint_Ping(struct rpc_pipe_client *cli,
12 TALLOC_CTX *mem_ctx,
13 uint32_t in_data /* [in] */,
14 uint32_t *out_data /* [out] [ref] */);
15 struct tevent_req *rpccli_wbint_LookupSid_send(TALLOC_CTX *mem_ctx,
16 struct tevent_context *ev,
17 struct rpc_pipe_client *cli,
18 struct dom_sid *_sid /* [in] [ref] */,
19 enum lsa_SidType *_type /* [out] [ref] */,
20 const char **_domain /* [out] [ref,charset(UTF8)] */,
21 const char **_name /* [out] [ref,charset(UTF8)] */);
22 NTSTATUS rpccli_wbint_LookupSid_recv(struct tevent_req *req,
23 TALLOC_CTX *mem_ctx,
24 NTSTATUS *result);
25 NTSTATUS rpccli_wbint_LookupSid(struct rpc_pipe_client *cli,
26 TALLOC_CTX *mem_ctx,
27 struct dom_sid *sid /* [in] [ref] */,
28 enum lsa_SidType *type /* [out] [ref] */,
29 const char **domain /* [out] [ref,charset(UTF8)] */,
30 const char **name /* [out] [ref,charset(UTF8)] */);
31 struct tevent_req *rpccli_wbint_LookupName_send(TALLOC_CTX *mem_ctx,
32 struct tevent_context *ev,
33 struct rpc_pipe_client *cli,
34 const char *_domain /* [in] [ref,charset(UTF8)] */,
35 const char *_name /* [in] [ref,charset(UTF8)] */,
36 uint32_t _flags /* [in] */,
37 enum lsa_SidType *_type /* [out] [ref] */,
38 struct dom_sid *_sid /* [out] [ref] */);
39 NTSTATUS rpccli_wbint_LookupName_recv(struct tevent_req *req,
40 TALLOC_CTX *mem_ctx,
41 NTSTATUS *result);
42 NTSTATUS rpccli_wbint_LookupName(struct rpc_pipe_client *cli,
43 TALLOC_CTX *mem_ctx,
44 const char *domain /* [in] [ref,charset(UTF8)] */,
45 const char *name /* [in] [ref,charset(UTF8)] */,
46 uint32_t flags /* [in] */,
47 enum lsa_SidType *type /* [out] [ref] */,
48 struct dom_sid *sid /* [out] [ref] */);
49 struct tevent_req *rpccli_wbint_Sid2Uid_send(TALLOC_CTX *mem_ctx,
50 struct tevent_context *ev,
51 struct rpc_pipe_client *cli,
52 const char *_dom_name /* [in] [unique,charset(UTF8)] */,
53 struct dom_sid *_sid /* [in] [ref] */,
54 uint64_t *_uid /* [out] [ref] */);
55 NTSTATUS rpccli_wbint_Sid2Uid_recv(struct tevent_req *req,
56 TALLOC_CTX *mem_ctx,
57 NTSTATUS *result);
58 NTSTATUS rpccli_wbint_Sid2Uid(struct rpc_pipe_client *cli,
59 TALLOC_CTX *mem_ctx,
60 const char *dom_name /* [in] [unique,charset(UTF8)] */,
61 struct dom_sid *sid /* [in] [ref] */,
62 uint64_t *uid /* [out] [ref] */);
63 struct tevent_req *rpccli_wbint_Sid2Gid_send(TALLOC_CTX *mem_ctx,
64 struct tevent_context *ev,
65 struct rpc_pipe_client *cli,
66 const char *_dom_name /* [in] [unique,charset(UTF8)] */,
67 struct dom_sid *_sid /* [in] [ref] */,
68 uint64_t *_gid /* [out] [ref] */);
69 NTSTATUS rpccli_wbint_Sid2Gid_recv(struct tevent_req *req,
70 TALLOC_CTX *mem_ctx,
71 NTSTATUS *result);
72 NTSTATUS rpccli_wbint_Sid2Gid(struct rpc_pipe_client *cli,
73 TALLOC_CTX *mem_ctx,
74 const char *dom_name /* [in] [unique,charset(UTF8)] */,
75 struct dom_sid *sid /* [in] [ref] */,
76 uint64_t *gid /* [out] [ref] */);
77 struct tevent_req *rpccli_wbint_Uid2Sid_send(TALLOC_CTX *mem_ctx,
78 struct tevent_context *ev,
79 struct rpc_pipe_client *cli,
80 const char *_dom_name /* [in] [unique,charset(UTF8)] */,
81 uint64_t _uid /* [in] */,
82 struct dom_sid *_sid /* [out] [ref] */);
83 NTSTATUS rpccli_wbint_Uid2Sid_recv(struct tevent_req *req,
84 TALLOC_CTX *mem_ctx,
85 NTSTATUS *result);
86 NTSTATUS rpccli_wbint_Uid2Sid(struct rpc_pipe_client *cli,
87 TALLOC_CTX *mem_ctx,
88 const char *dom_name /* [in] [unique,charset(UTF8)] */,
89 uint64_t uid /* [in] */,
90 struct dom_sid *sid /* [out] [ref] */);
91 struct tevent_req *rpccli_wbint_Gid2Sid_send(TALLOC_CTX *mem_ctx,
92 struct tevent_context *ev,
93 struct rpc_pipe_client *cli,
94 const char *_dom_name /* [in] [unique,charset(UTF8)] */,
95 uint64_t _gid /* [in] */,
96 struct dom_sid *_sid /* [out] [ref] */);
97 NTSTATUS rpccli_wbint_Gid2Sid_recv(struct tevent_req *req,
98 TALLOC_CTX *mem_ctx,
99 NTSTATUS *result);
100 NTSTATUS rpccli_wbint_Gid2Sid(struct rpc_pipe_client *cli,
101 TALLOC_CTX *mem_ctx,
102 const char *dom_name /* [in] [unique,charset(UTF8)] */,
103 uint64_t gid /* [in] */,
104 struct dom_sid *sid /* [out] [ref] */);
105 struct tevent_req *rpccli_wbint_AllocateUid_send(TALLOC_CTX *mem_ctx,
106 struct tevent_context *ev,
107 struct rpc_pipe_client *cli,
108 uint64_t *_uid /* [out] [ref] */);
109 NTSTATUS rpccli_wbint_AllocateUid_recv(struct tevent_req *req,
110 TALLOC_CTX *mem_ctx,
111 NTSTATUS *result);
112 NTSTATUS rpccli_wbint_AllocateUid(struct rpc_pipe_client *cli,
113 TALLOC_CTX *mem_ctx,
114 uint64_t *uid /* [out] [ref] */);
115 struct tevent_req *rpccli_wbint_AllocateGid_send(TALLOC_CTX *mem_ctx,
116 struct tevent_context *ev,
117 struct rpc_pipe_client *cli,
118 uint64_t *_gid /* [out] [ref] */);
119 NTSTATUS rpccli_wbint_AllocateGid_recv(struct tevent_req *req,
120 TALLOC_CTX *mem_ctx,
121 NTSTATUS *result);
122 NTSTATUS rpccli_wbint_AllocateGid(struct rpc_pipe_client *cli,
123 TALLOC_CTX *mem_ctx,
124 uint64_t *gid /* [out] [ref] */);
125 struct tevent_req *rpccli_wbint_QueryUser_send(TALLOC_CTX *mem_ctx,
126 struct tevent_context *ev,
127 struct rpc_pipe_client *cli,
128 struct dom_sid *_sid /* [in] [ref] */,
129 struct wbint_userinfo *_info /* [out] [ref] */);
130 NTSTATUS rpccli_wbint_QueryUser_recv(struct tevent_req *req,
131 TALLOC_CTX *mem_ctx,
132 NTSTATUS *result);
133 NTSTATUS rpccli_wbint_QueryUser(struct rpc_pipe_client *cli,
134 TALLOC_CTX *mem_ctx,
135 struct dom_sid *sid /* [in] [ref] */,
136 struct wbint_userinfo *info /* [out] [ref] */);
137 struct tevent_req *rpccli_wbint_LookupUserAliases_send(TALLOC_CTX *mem_ctx,
138 struct tevent_context *ev,
139 struct rpc_pipe_client *cli,
140 struct wbint_SidArray *_sids /* [in] [ref] */,
141 struct wbint_RidArray *_rids /* [out] [ref] */);
142 NTSTATUS rpccli_wbint_LookupUserAliases_recv(struct tevent_req *req,
143 TALLOC_CTX *mem_ctx,
144 NTSTATUS *result);
145 NTSTATUS rpccli_wbint_LookupUserAliases(struct rpc_pipe_client *cli,
146 TALLOC_CTX *mem_ctx,
147 struct wbint_SidArray *sids /* [in] [ref] */,
148 struct wbint_RidArray *rids /* [out] [ref] */);
149 struct tevent_req *rpccli_wbint_LookupUserGroups_send(TALLOC_CTX *mem_ctx,
150 struct tevent_context *ev,
151 struct rpc_pipe_client *cli,
152 struct dom_sid *_sid /* [in] [ref] */,
153 struct wbint_SidArray *_sids /* [out] [ref] */);
154 NTSTATUS rpccli_wbint_LookupUserGroups_recv(struct tevent_req *req,
155 TALLOC_CTX *mem_ctx,
156 NTSTATUS *result);
157 NTSTATUS rpccli_wbint_LookupUserGroups(struct rpc_pipe_client *cli,
158 TALLOC_CTX *mem_ctx,
159 struct dom_sid *sid /* [in] [ref] */,
160 struct wbint_SidArray *sids /* [out] [ref] */);
161 struct tevent_req *rpccli_wbint_QuerySequenceNumber_send(TALLOC_CTX *mem_ctx,
162 struct tevent_context *ev,
163 struct rpc_pipe_client *cli,
164 uint32_t *_sequence /* [out] [ref] */);
165 NTSTATUS rpccli_wbint_QuerySequenceNumber_recv(struct tevent_req *req,
166 TALLOC_CTX *mem_ctx,
167 NTSTATUS *result);
168 NTSTATUS rpccli_wbint_QuerySequenceNumber(struct rpc_pipe_client *cli,
169 TALLOC_CTX *mem_ctx,
170 uint32_t *sequence /* [out] [ref] */);
171 struct tevent_req *rpccli_wbint_LookupGroupMembers_send(TALLOC_CTX *mem_ctx,
172 struct tevent_context *ev,
173 struct rpc_pipe_client *cli,
174 struct dom_sid *_sid /* [in] [ref] */,
175 enum lsa_SidType _type /* [in] */,
176 struct wbint_Principals *_members /* [out] [ref] */);
177 NTSTATUS rpccli_wbint_LookupGroupMembers_recv(struct tevent_req *req,
178 TALLOC_CTX *mem_ctx,
179 NTSTATUS *result);
180 NTSTATUS rpccli_wbint_LookupGroupMembers(struct rpc_pipe_client *cli,
181 TALLOC_CTX *mem_ctx,
182 struct dom_sid *sid /* [in] [ref] */,
183 enum lsa_SidType type /* [in] */,
184 struct wbint_Principals *members /* [out] [ref] */);
185 struct tevent_req *rpccli_wbint_QueryUserList_send(TALLOC_CTX *mem_ctx,
186 struct tevent_context *ev,
187 struct rpc_pipe_client *cli,
188 struct wbint_userinfos *_users /* [out] [ref] */);
189 NTSTATUS rpccli_wbint_QueryUserList_recv(struct tevent_req *req,
190 TALLOC_CTX *mem_ctx,
191 NTSTATUS *result);
192 NTSTATUS rpccli_wbint_QueryUserList(struct rpc_pipe_client *cli,
193 TALLOC_CTX *mem_ctx,
194 struct wbint_userinfos *users /* [out] [ref] */);
195 struct tevent_req *rpccli_wbint_QueryGroupList_send(TALLOC_CTX *mem_ctx,
196 struct tevent_context *ev,
197 struct rpc_pipe_client *cli,
198 struct wbint_Principals *_groups /* [out] [ref] */);
199 NTSTATUS rpccli_wbint_QueryGroupList_recv(struct tevent_req *req,
200 TALLOC_CTX *mem_ctx,
201 NTSTATUS *result);
202 NTSTATUS rpccli_wbint_QueryGroupList(struct rpc_pipe_client *cli,
203 TALLOC_CTX *mem_ctx,
204 struct wbint_Principals *groups /* [out] [ref] */);
205 struct tevent_req *rpccli_wbint_DsGetDcName_send(TALLOC_CTX *mem_ctx,
206 struct tevent_context *ev,
207 struct rpc_pipe_client *cli,
208 const char *_domain_name /* [in] [ref,charset(UTF8)] */,
209 struct GUID *_domain_guid /* [in] [unique] */,
210 const char *_site_name /* [in] [unique,charset(UTF8)] */,
211 uint32_t _flags /* [in] */,
212 struct netr_DsRGetDCNameInfo **_dc_info /* [out] [ref] */);
213 NTSTATUS rpccli_wbint_DsGetDcName_recv(struct tevent_req *req,
214 TALLOC_CTX *mem_ctx,
215 NTSTATUS *result);
216 NTSTATUS rpccli_wbint_DsGetDcName(struct rpc_pipe_client *cli,
217 TALLOC_CTX *mem_ctx,
218 const char *domain_name /* [in] [ref,charset(UTF8)] */,
219 struct GUID *domain_guid /* [in] [unique] */,
220 const char *site_name /* [in] [unique,charset(UTF8)] */,
221 uint32_t flags /* [in] */,
222 struct netr_DsRGetDCNameInfo **dc_info /* [out] [ref] */);
223 struct tevent_req *rpccli_wbint_LookupRids_send(TALLOC_CTX *mem_ctx,
224 struct tevent_context *ev,
225 struct rpc_pipe_client *cli,
226 struct wbint_RidArray *_rids /* [in] [ref] */,
227 struct wbint_Principals *_names /* [out] [ref] */);
228 NTSTATUS rpccli_wbint_LookupRids_recv(struct tevent_req *req,
229 TALLOC_CTX *mem_ctx,
230 NTSTATUS *result);
231 NTSTATUS rpccli_wbint_LookupRids(struct rpc_pipe_client *cli,
232 TALLOC_CTX *mem_ctx,
233 struct wbint_RidArray *rids /* [in] [ref] */,
234 struct wbint_Principals *names /* [out] [ref] */);
235 struct tevent_req *rpccli_wbint_CheckMachineAccount_send(TALLOC_CTX *mem_ctx,
236 struct tevent_context *ev,
237 struct rpc_pipe_client *cli);
238 NTSTATUS rpccli_wbint_CheckMachineAccount_recv(struct tevent_req *req,
239 TALLOC_CTX *mem_ctx,
240 NTSTATUS *result);
241 NTSTATUS rpccli_wbint_CheckMachineAccount(struct rpc_pipe_client *cli,
242 TALLOC_CTX *mem_ctx);
243 struct tevent_req *rpccli_wbint_SetMapping_send(TALLOC_CTX *mem_ctx,
244 struct tevent_context *ev,
245 struct rpc_pipe_client *cli,
246 struct dom_sid *_sid /* [in] [ref] */,
247 enum wbint_IdType _type /* [in] */,
248 uint64_t _id /* [in] */);
249 NTSTATUS rpccli_wbint_SetMapping_recv(struct tevent_req *req,
250 TALLOC_CTX *mem_ctx,
251 NTSTATUS *result);
252 NTSTATUS rpccli_wbint_SetMapping(struct rpc_pipe_client *cli,
253 TALLOC_CTX *mem_ctx,
254 struct dom_sid *sid /* [in] [ref] */,
255 enum wbint_IdType type /* [in] */,
256 uint64_t id /* [in] */);
257 #endif /* __CLI_WBINT__ */