1 | /*
|
---|
2 | * Unix SMB/CIFS implementation.
|
---|
3 | * collected prototypes header
|
---|
4 | *
|
---|
5 | * frozen from "make proto" in May 2008
|
---|
6 | *
|
---|
7 | * Copyright (C) Michael Adam 2008
|
---|
8 | *
|
---|
9 | * This program is free software; you can redistribute it and/or modify
|
---|
10 | * it under the terms of the GNU General Public License as published by
|
---|
11 | * the Free Software Foundation; either version 3 of the License, or
|
---|
12 | * (at your option) any later version.
|
---|
13 | *
|
---|
14 | * This program is distributed in the hope that it will be useful,
|
---|
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
17 | * GNU General Public License for more details.
|
---|
18 | *
|
---|
19 | * You should have received a copy of the GNU General Public License
|
---|
20 | * along with this program; if not, see <http://www.gnu.org/licenses/>.
|
---|
21 | */
|
---|
22 |
|
---|
23 | #ifndef _WINBINDD_PROTO_H_
|
---|
24 | #define _WINBINDD_PROTO_H_
|
---|
25 |
|
---|
26 | #include "ads.h"
|
---|
27 |
|
---|
28 | /* The following definitions come from winbindd/winbindd.c */
|
---|
29 | struct messaging_context *winbind_messaging_context(void);
|
---|
30 | struct imessaging_context *winbind_imessaging_context(void);
|
---|
31 | void request_error(struct winbindd_cli_state *state);
|
---|
32 | void request_ok(struct winbindd_cli_state *state);
|
---|
33 | bool winbindd_setup_sig_term_handler(bool parent);
|
---|
34 | bool winbindd_setup_stdin_handler(bool parent, bool foreground);
|
---|
35 | bool winbindd_setup_sig_hup_handler(const char *lfile);
|
---|
36 | bool winbindd_use_idmap_cache(void);
|
---|
37 | bool winbindd_use_cache(void);
|
---|
38 | char *get_winbind_priv_pipe_dir(void);
|
---|
39 | struct tevent_context *winbind_event_context(void);
|
---|
40 |
|
---|
41 | /* The following definitions come from winbindd/winbindd_ads.c */
|
---|
42 |
|
---|
43 | /* The following definitions come from winbindd/winbindd_rpc.c */
|
---|
44 |
|
---|
45 | NTSTATUS winbindd_lookup_sids(TALLOC_CTX *mem_ctx,
|
---|
46 | struct winbindd_domain *domain,
|
---|
47 | uint32_t num_sids,
|
---|
48 | const struct dom_sid *sids,
|
---|
49 | char ***domains,
|
---|
50 | char ***names,
|
---|
51 | enum lsa_SidType **types);
|
---|
52 | NTSTATUS rpc_lookup_sids(TALLOC_CTX *mem_ctx,
|
---|
53 | struct winbindd_domain *domain,
|
---|
54 | struct lsa_SidArray *sids,
|
---|
55 | struct lsa_RefDomainList **pdomains,
|
---|
56 | struct lsa_TransNameArray **pnames);
|
---|
57 |
|
---|
58 | /* The following definitions come from winbindd/winbindd_cache.c */
|
---|
59 |
|
---|
60 | NTSTATUS wcache_cached_creds_exist(struct winbindd_domain *domain, const struct dom_sid *sid);
|
---|
61 | NTSTATUS wcache_get_creds(struct winbindd_domain *domain,
|
---|
62 | TALLOC_CTX *mem_ctx,
|
---|
63 | const struct dom_sid *sid,
|
---|
64 | const uint8_t **cached_nt_pass,
|
---|
65 | const uint8_t **cached_salt);
|
---|
66 | NTSTATUS wcache_save_creds(struct winbindd_domain *domain,
|
---|
67 | const struct dom_sid *sid,
|
---|
68 | const uint8_t nt_pass[NT_HASH_LEN]);
|
---|
69 | void wcache_invalidate_samlogon(struct winbindd_domain *domain,
|
---|
70 | const struct dom_sid *user_sid);
|
---|
71 | bool wcache_invalidate_cache(void);
|
---|
72 | bool wcache_invalidate_cache_noinit(void);
|
---|
73 | bool init_wcache(void);
|
---|
74 | bool initialize_winbindd_cache(void);
|
---|
75 | void close_winbindd_cache(void);
|
---|
76 | NTSTATUS wcache_lookup_groupmem(struct winbindd_domain *domain,
|
---|
77 | TALLOC_CTX *mem_ctx,
|
---|
78 | const struct dom_sid *group_sid,
|
---|
79 | uint32_t *num_names,
|
---|
80 | struct dom_sid **sid_mem, char ***names,
|
---|
81 | uint32_t **name_types);
|
---|
82 | bool lookup_cached_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
|
---|
83 | char **domain_name, char **name,
|
---|
84 | enum lsa_SidType *type);
|
---|
85 | bool lookup_cached_name(const char *domain_name,
|
---|
86 | const char *name,
|
---|
87 | struct dom_sid *sid,
|
---|
88 | enum lsa_SidType *type);
|
---|
89 | void cache_name2sid_trusted(struct winbindd_domain *domain,
|
---|
90 | const char *domain_name,
|
---|
91 | const char *name,
|
---|
92 | enum lsa_SidType type,
|
---|
93 | const struct dom_sid *sid);
|
---|
94 | void cache_name2sid(struct winbindd_domain *domain,
|
---|
95 | const char *domain_name, const char *name,
|
---|
96 | enum lsa_SidType type, const struct dom_sid *sid);
|
---|
97 | NTSTATUS wcache_name_to_sid(struct winbindd_domain *domain,
|
---|
98 | const char *domain_name,
|
---|
99 | const char *name,
|
---|
100 | struct dom_sid *sid,
|
---|
101 | enum lsa_SidType *type);
|
---|
102 | NTSTATUS wcache_query_user(struct winbindd_domain *domain,
|
---|
103 | TALLOC_CTX *mem_ctx,
|
---|
104 | const struct dom_sid *user_sid,
|
---|
105 | struct wbint_userinfo *info);
|
---|
106 | NTSTATUS wcache_query_user_fullname(struct winbindd_domain *domain,
|
---|
107 | TALLOC_CTX *mem_ctx,
|
---|
108 | const struct dom_sid *user_sid,
|
---|
109 | const char **full_name);
|
---|
110 | NTSTATUS wcache_lookup_useraliases(struct winbindd_domain *domain,
|
---|
111 | TALLOC_CTX *mem_ctx,
|
---|
112 | uint32_t num_sids, const struct dom_sid *sids,
|
---|
113 | uint32_t *pnum_aliases, uint32_t **paliases);
|
---|
114 | NTSTATUS wcache_lookup_usergroups(struct winbindd_domain *domain,
|
---|
115 | TALLOC_CTX *mem_ctx,
|
---|
116 | const struct dom_sid *user_sid,
|
---|
117 | uint32_t *pnum_sids,
|
---|
118 | struct dom_sid **psids);
|
---|
119 |
|
---|
120 | void wcache_flush_cache(void);
|
---|
121 | NTSTATUS wcache_count_cached_creds(struct winbindd_domain *domain, int *count);
|
---|
122 | NTSTATUS wcache_remove_oldest_cached_creds(struct winbindd_domain *domain, const struct dom_sid *sid) ;
|
---|
123 | bool set_global_winbindd_state_offline(void);
|
---|
124 | void set_global_winbindd_state_online(void);
|
---|
125 | bool get_global_winbindd_state_offline(void);
|
---|
126 | int winbindd_validate_cache(void);
|
---|
127 | int winbindd_validate_cache_nobackup(void);
|
---|
128 | bool winbindd_cache_validate_and_initialize(void);
|
---|
129 | bool wcache_tdc_fetch_list( struct winbindd_tdc_domain **domains, size_t *num_domains );
|
---|
130 | bool wcache_tdc_add_domain( struct winbindd_domain *domain );
|
---|
131 | struct winbindd_tdc_domain * wcache_tdc_fetch_domain( TALLOC_CTX *ctx, const char *name );
|
---|
132 | struct winbindd_tdc_domain* wcache_tdc_fetch_domainbysid(TALLOC_CTX *ctx, const struct dom_sid *sid);
|
---|
133 | void wcache_tdc_clear( void );
|
---|
134 | #ifdef HAVE_ADS
|
---|
135 | struct ads_struct;
|
---|
136 | NTSTATUS nss_get_info_cached( struct winbindd_domain *domain,
|
---|
137 | const struct dom_sid *user_sid,
|
---|
138 | TALLOC_CTX *ctx,
|
---|
139 | const char **homedir, const char **shell,
|
---|
140 | const char **gecos, gid_t *p_gid);
|
---|
141 | #endif
|
---|
142 | bool wcache_store_seqnum(const char *domain_name, uint32_t seqnum,
|
---|
143 | time_t last_seq_check);
|
---|
144 | bool wcache_fetch_ndr(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
|
---|
145 | uint32_t opnum, const DATA_BLOB *req, DATA_BLOB *resp);
|
---|
146 | void wcache_store_ndr(struct winbindd_domain *domain, uint32_t opnum,
|
---|
147 | const DATA_BLOB *req, const DATA_BLOB *resp);
|
---|
148 |
|
---|
149 | /* The following definitions come from winbindd/winbindd_ccache_access.c */
|
---|
150 |
|
---|
151 | void winbindd_ccache_ntlm_auth(struct winbindd_cli_state *state);
|
---|
152 | enum winbindd_result winbindd_dual_ccache_ntlm_auth(struct winbindd_domain *domain,
|
---|
153 | struct winbindd_cli_state *state);
|
---|
154 | void winbindd_ccache_save(struct winbindd_cli_state *state);
|
---|
155 |
|
---|
156 | /* The following definitions come from winbindd/winbindd_cm.c */
|
---|
157 | void winbind_msg_domain_offline(struct messaging_context *msg_ctx,
|
---|
158 | void *private_data,
|
---|
159 | uint32_t msg_type,
|
---|
160 | struct server_id server_id,
|
---|
161 | DATA_BLOB *data);
|
---|
162 | void winbind_msg_domain_online(struct messaging_context *msg_ctx,
|
---|
163 | void *private_data,
|
---|
164 | uint32_t msg_type,
|
---|
165 | struct server_id server_id,
|
---|
166 | DATA_BLOB *data);
|
---|
167 |
|
---|
168 | void set_domain_offline(struct winbindd_domain *domain);
|
---|
169 | void set_domain_online_request(struct winbindd_domain *domain);
|
---|
170 |
|
---|
171 | struct ndr_interface_table;
|
---|
172 | NTSTATUS wb_open_internal_pipe(TALLOC_CTX *mem_ctx,
|
---|
173 | const struct ndr_interface_table *table,
|
---|
174 | struct rpc_pipe_client **ret_pipe);
|
---|
175 | void invalidate_cm_connection(struct winbindd_domain *domain);
|
---|
176 | void close_conns_after_fork(void);
|
---|
177 | NTSTATUS init_dc_connection(struct winbindd_domain *domain, bool need_rw_dc);
|
---|
178 | NTSTATUS cm_connect_sam(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
|
---|
179 | bool need_rw_dc,
|
---|
180 | struct rpc_pipe_client **cli, struct policy_handle *sam_handle);
|
---|
181 | NTSTATUS cm_connect_lsa(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
|
---|
182 | struct rpc_pipe_client **cli, struct policy_handle *lsa_policy);
|
---|
183 | NTSTATUS cm_connect_lsat(struct winbindd_domain *domain,
|
---|
184 | TALLOC_CTX *mem_ctx,
|
---|
185 | struct rpc_pipe_client **cli,
|
---|
186 | struct policy_handle *lsa_policy);
|
---|
187 | NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
|
---|
188 | struct rpc_pipe_client **cli);
|
---|
189 | bool fetch_current_dc_from_gencache(TALLOC_CTX *mem_ctx,
|
---|
190 | const char *domain_name,
|
---|
191 | char **p_dc_name, char **p_dc_ip);
|
---|
192 |
|
---|
193 | /* The following definitions come from winbindd/winbindd_cred_cache.c */
|
---|
194 |
|
---|
195 | bool ccache_entry_exists(const char *username);
|
---|
196 | bool ccache_entry_identical(const char *username,
|
---|
197 | uid_t uid,
|
---|
198 | const char *ccname);
|
---|
199 | void ccache_remove_all_after_fork(void);
|
---|
200 | void ccache_regain_all_now(void);
|
---|
201 | NTSTATUS add_ccache_to_list(const char *princ_name,
|
---|
202 | const char *ccname,
|
---|
203 | const char *service,
|
---|
204 | const char *username,
|
---|
205 | const char *password,
|
---|
206 | const char *realm,
|
---|
207 | uid_t uid,
|
---|
208 | time_t create_time,
|
---|
209 | time_t ticket_end,
|
---|
210 | time_t renew_until,
|
---|
211 | bool postponed_request);
|
---|
212 | NTSTATUS remove_ccache(const char *username);
|
---|
213 | struct WINBINDD_MEMORY_CREDS *find_memory_creds_by_name(const char *username);
|
---|
214 | NTSTATUS winbindd_add_memory_creds(const char *username,
|
---|
215 | uid_t uid,
|
---|
216 | const char *pass);
|
---|
217 | NTSTATUS winbindd_delete_memory_creds(const char *username);
|
---|
218 | NTSTATUS winbindd_replace_memory_creds(const char *username,
|
---|
219 | const char *pass);
|
---|
220 |
|
---|
221 | /* The following definitions come from winbindd/winbindd_creds.c */
|
---|
222 |
|
---|
223 | NTSTATUS winbindd_get_creds(struct winbindd_domain *domain,
|
---|
224 | TALLOC_CTX *mem_ctx,
|
---|
225 | const struct dom_sid *sid,
|
---|
226 | struct netr_SamInfo3 **info3,
|
---|
227 | const uint8_t *cached_nt_pass[NT_HASH_LEN],
|
---|
228 | const uint8_t *cred_salt[NT_HASH_LEN]);
|
---|
229 | NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
|
---|
230 | const char *user,
|
---|
231 | const char *pass,
|
---|
232 | struct netr_SamInfo3 *info3);
|
---|
233 | NTSTATUS winbindd_update_creds_by_info3(struct winbindd_domain *domain,
|
---|
234 | const char *user,
|
---|
235 | const char *pass,
|
---|
236 | struct netr_SamInfo3 *info3);
|
---|
237 | NTSTATUS winbindd_update_creds_by_name(struct winbindd_domain *domain,
|
---|
238 | const char *user,
|
---|
239 | const char *pass);
|
---|
240 |
|
---|
241 | /* The following definitions come from winbindd/winbindd_domain.c */
|
---|
242 |
|
---|
243 | void setup_domain_child(struct winbindd_domain *domain);
|
---|
244 |
|
---|
245 | /* The following definitions come from winbindd/winbindd_dual.c */
|
---|
246 |
|
---|
247 | struct dcerpc_binding_handle *dom_child_handle(struct winbindd_domain *domain);
|
---|
248 | struct winbindd_child *choose_domain_child(struct winbindd_domain *domain);
|
---|
249 |
|
---|
250 | struct tevent_req *wb_child_request_send(TALLOC_CTX *mem_ctx,
|
---|
251 | struct tevent_context *ev,
|
---|
252 | struct winbindd_child *child,
|
---|
253 | struct winbindd_request *request);
|
---|
254 | int wb_child_request_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
255 | struct winbindd_response **presponse, int *err);
|
---|
256 | struct tevent_req *wb_domain_request_send(TALLOC_CTX *mem_ctx,
|
---|
257 | struct tevent_context *ev,
|
---|
258 | struct winbindd_domain *domain,
|
---|
259 | struct winbindd_request *request);
|
---|
260 | int wb_domain_request_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
261 | struct winbindd_response **presponse, int *err);
|
---|
262 |
|
---|
263 | void setup_child(struct winbindd_domain *domain, struct winbindd_child *child,
|
---|
264 | const struct winbindd_child_dispatch_table *table,
|
---|
265 | const char *logprefix,
|
---|
266 | const char *logname);
|
---|
267 | void winbind_child_died(pid_t pid);
|
---|
268 | void winbindd_flush_negative_conn_cache(struct winbindd_domain *domain);
|
---|
269 | void winbind_msg_debug(struct messaging_context *msg_ctx,
|
---|
270 | void *private_data,
|
---|
271 | uint32_t msg_type,
|
---|
272 | struct server_id server_id,
|
---|
273 | DATA_BLOB *data);
|
---|
274 | void winbind_msg_offline(struct messaging_context *msg_ctx,
|
---|
275 | void *private_data,
|
---|
276 | uint32_t msg_type,
|
---|
277 | struct server_id server_id,
|
---|
278 | DATA_BLOB *data);
|
---|
279 | void winbind_msg_online(struct messaging_context *msg_ctx,
|
---|
280 | void *private_data,
|
---|
281 | uint32_t msg_type,
|
---|
282 | struct server_id server_id,
|
---|
283 | DATA_BLOB *data);
|
---|
284 | void winbind_msg_onlinestatus(struct messaging_context *msg_ctx,
|
---|
285 | void *private_data,
|
---|
286 | uint32_t msg_type,
|
---|
287 | struct server_id server_id,
|
---|
288 | DATA_BLOB *data);
|
---|
289 | void winbind_msg_dump_event_list(struct messaging_context *msg_ctx,
|
---|
290 | void *private_data,
|
---|
291 | uint32_t msg_type,
|
---|
292 | struct server_id server_id,
|
---|
293 | DATA_BLOB *data);
|
---|
294 | void winbind_msg_dump_domain_list(struct messaging_context *msg_ctx,
|
---|
295 | void *private_data,
|
---|
296 | uint32_t msg_type,
|
---|
297 | struct server_id server_id,
|
---|
298 | DATA_BLOB *data);
|
---|
299 | void winbind_msg_ip_dropped(struct messaging_context *msg_ctx,
|
---|
300 | void *private_data,
|
---|
301 | uint32_t msg_type,
|
---|
302 | struct server_id server_id,
|
---|
303 | DATA_BLOB *data);
|
---|
304 | void winbind_msg_ip_dropped_parent(struct messaging_context *msg_ctx,
|
---|
305 | void *private_data,
|
---|
306 | uint32_t msg_type,
|
---|
307 | struct server_id server_id,
|
---|
308 | DATA_BLOB *data);
|
---|
309 | NTSTATUS winbindd_reinit_after_fork(const struct winbindd_child *myself,
|
---|
310 | const char *logfilename);
|
---|
311 | struct winbindd_domain *wb_child_domain(void);
|
---|
312 |
|
---|
313 | /* The following definitions come from winbindd/winbindd_group.c */
|
---|
314 |
|
---|
315 | void winbindd_getgrnam(struct winbindd_cli_state *state);
|
---|
316 | void winbindd_getgrgid(struct winbindd_cli_state *state);
|
---|
317 | void winbindd_setgrent(struct winbindd_cli_state *state);
|
---|
318 | void winbindd_endgrent(struct winbindd_cli_state *state);
|
---|
319 | void winbindd_getgrent(struct winbindd_cli_state *state);
|
---|
320 | void winbindd_list_groups(struct winbindd_cli_state *state);
|
---|
321 | void winbindd_getgroups(struct winbindd_cli_state *state);
|
---|
322 | void winbindd_getusersids(struct winbindd_cli_state *state);
|
---|
323 | void winbindd_getuserdomgroups(struct winbindd_cli_state *state);
|
---|
324 | void winbindd_getsidaliases(struct winbindd_cli_state *state);
|
---|
325 | bool fill_grent(TALLOC_CTX *mem_ctx, struct winbindd_gr *gr,
|
---|
326 | const char *dom_name, const char *gr_name, gid_t unix_gid);
|
---|
327 | NTSTATUS winbindd_print_groupmembers(struct talloc_dict *members,
|
---|
328 | TALLOC_CTX *mem_ctx,
|
---|
329 | int *num_members, char **result);
|
---|
330 |
|
---|
331 |
|
---|
332 | /* The following definitions come from winbindd/winbindd_idmap.c */
|
---|
333 |
|
---|
334 | void init_idmap_child(void);
|
---|
335 | struct winbindd_child *idmap_child(void);
|
---|
336 | struct idmap_domain *idmap_find_domain_with_sid(const char *domname,
|
---|
337 | const struct dom_sid *sid);
|
---|
338 | bool domain_has_idmap_config(const char *domname);
|
---|
339 |
|
---|
340 | /* The following definitions come from winbindd/winbindd_locator.c */
|
---|
341 |
|
---|
342 | void init_locator_child(void);
|
---|
343 | struct winbindd_child *locator_child(void);
|
---|
344 |
|
---|
345 | /* The following definitions come from winbindd/winbindd_misc.c */
|
---|
346 |
|
---|
347 | void winbindd_list_trusted_domains(struct winbindd_cli_state *state);
|
---|
348 | enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain *domain,
|
---|
349 | struct winbindd_cli_state *state);
|
---|
350 | void winbindd_show_sequence(struct winbindd_cli_state *state);
|
---|
351 | void winbindd_domain_info(struct winbindd_cli_state *state);
|
---|
352 | void winbindd_dc_info(struct winbindd_cli_state *state);
|
---|
353 | void winbindd_ping(struct winbindd_cli_state *state);
|
---|
354 | void winbindd_info(struct winbindd_cli_state *state);
|
---|
355 | void winbindd_interface_version(struct winbindd_cli_state *state);
|
---|
356 | void winbindd_domain_name(struct winbindd_cli_state *state);
|
---|
357 | void winbindd_netbios_name(struct winbindd_cli_state *state);
|
---|
358 | void winbindd_priv_pipe_dir(struct winbindd_cli_state *state);
|
---|
359 |
|
---|
360 | /* The following definitions come from winbindd/winbindd_ndr.c */
|
---|
361 | struct ndr_print;
|
---|
362 | void ndr_print_winbindd_child(struct ndr_print *ndr,
|
---|
363 | const char *name,
|
---|
364 | const struct winbindd_child *r);
|
---|
365 | void ndr_print_winbindd_cm_conn(struct ndr_print *ndr,
|
---|
366 | const char *name,
|
---|
367 | const struct winbindd_cm_conn *r);
|
---|
368 | void ndr_print_winbindd_methods(struct ndr_print *ndr,
|
---|
369 | const char *name,
|
---|
370 | const struct winbindd_methods *r);
|
---|
371 | void ndr_print_winbindd_domain(struct ndr_print *ndr,
|
---|
372 | const char *name,
|
---|
373 | const struct winbindd_domain *r);
|
---|
374 |
|
---|
375 | /* The following definitions come from winbindd/winbindd_pam.c */
|
---|
376 |
|
---|
377 | bool check_request_flags(uint32_t flags);
|
---|
378 | NTSTATUS append_auth_data(TALLOC_CTX *mem_ctx,
|
---|
379 | struct winbindd_response *resp,
|
---|
380 | uint32_t request_flags,
|
---|
381 | struct netr_SamInfo3 *info3,
|
---|
382 | const char *name_domain,
|
---|
383 | const char *name_user);
|
---|
384 | uid_t get_uid_from_request(struct winbindd_request *request);
|
---|
385 | struct winbindd_domain *find_auth_domain(uint8_t flags,
|
---|
386 | const char *domain_name);
|
---|
387 | enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
|
---|
388 | struct winbindd_cli_state *state) ;
|
---|
389 | enum winbindd_result winbindd_dual_pam_auth_crap(struct winbindd_domain *domain,
|
---|
390 | struct winbindd_cli_state *state) ;
|
---|
391 | enum winbindd_result winbindd_dual_pam_chauthtok(struct winbindd_domain *contact_domain,
|
---|
392 | struct winbindd_cli_state *state);
|
---|
393 | enum winbindd_result winbindd_dual_pam_logoff(struct winbindd_domain *domain,
|
---|
394 | struct winbindd_cli_state *state) ;
|
---|
395 | enum winbindd_result winbindd_dual_pam_chng_pswd_auth_crap(struct winbindd_domain *domainSt, struct winbindd_cli_state *state);
|
---|
396 | NTSTATUS winbindd_pam_auth_pac_send(struct winbindd_cli_state *state,
|
---|
397 | struct netr_SamInfo3 **info3);
|
---|
398 |
|
---|
399 | NTSTATUS winbind_dual_SamLogon(struct winbindd_domain *domain,
|
---|
400 | TALLOC_CTX *mem_ctx,
|
---|
401 | uint32_t logon_parameters,
|
---|
402 | const char *name_user,
|
---|
403 | const char *name_domain,
|
---|
404 | const char *workstation,
|
---|
405 | const uint8_t chal[8],
|
---|
406 | DATA_BLOB lm_response,
|
---|
407 | DATA_BLOB nt_response,
|
---|
408 | struct netr_SamInfo3 **info3);
|
---|
409 |
|
---|
410 | /* The following definitions come from winbindd/winbindd_util.c */
|
---|
411 |
|
---|
412 | struct winbindd_domain *domain_list(void);
|
---|
413 | struct winbindd_domain *wb_next_domain(struct winbindd_domain *domain);
|
---|
414 | bool domain_is_forest_root(const struct winbindd_domain *domain);
|
---|
415 | void rescan_trusted_domains(struct tevent_context *ev, struct tevent_timer *te,
|
---|
416 | struct timeval now, void *private_data);
|
---|
417 | enum winbindd_result winbindd_dual_init_connection(struct winbindd_domain *domain,
|
---|
418 | struct winbindd_cli_state *state);
|
---|
419 | bool init_domain_list(void);
|
---|
420 | struct winbindd_domain *find_domain_from_name_noinit(const char *domain_name);
|
---|
421 | struct winbindd_domain *find_domain_from_name(const char *domain_name);
|
---|
422 | struct winbindd_domain *find_domain_from_sid_noinit(const struct dom_sid *sid);
|
---|
423 | struct winbindd_domain *find_domain_from_sid(const struct dom_sid *sid);
|
---|
424 | struct winbindd_domain *find_our_domain(void);
|
---|
425 | struct winbindd_domain *find_root_domain(void);
|
---|
426 | struct winbindd_domain *find_builtin_domain(void);
|
---|
427 | struct winbindd_domain *find_lookup_domain_from_sid(const struct dom_sid *sid);
|
---|
428 | struct winbindd_domain *find_lookup_domain_from_name(const char *domain_name);
|
---|
429 | bool parse_domain_user(const char *domuser, fstring domain, fstring user);
|
---|
430 | bool parse_domain_user_talloc(TALLOC_CTX *mem_ctx, const char *domuser,
|
---|
431 | char **domain, char **user);
|
---|
432 | bool canonicalize_username(fstring username_inout, fstring domain, fstring user);
|
---|
433 | void fill_domain_username(fstring name, const char *domain, const char *user, bool can_assume);
|
---|
434 | char *fill_domain_username_talloc(TALLOC_CTX *ctx,
|
---|
435 | const char *domain,
|
---|
436 | const char *user,
|
---|
437 | bool can_assume);
|
---|
438 | struct winbindd_cli_state *winbindd_client_list(void);
|
---|
439 | struct winbindd_cli_state *winbindd_client_list_tail(void);
|
---|
440 | struct winbindd_cli_state *
|
---|
441 | winbindd_client_list_prev(struct winbindd_cli_state *cli);
|
---|
442 | void winbindd_add_client(struct winbindd_cli_state *cli);
|
---|
443 | void winbindd_remove_client(struct winbindd_cli_state *cli);
|
---|
444 | void winbindd_promote_client(struct winbindd_cli_state *cli);
|
---|
445 | int winbindd_num_clients(void);
|
---|
446 | NTSTATUS lookup_usergroups_cached(struct winbindd_domain *domain,
|
---|
447 | TALLOC_CTX *mem_ctx,
|
---|
448 | const struct dom_sid *user_sid,
|
---|
449 | uint32_t *p_num_groups, struct dom_sid **user_sids);
|
---|
450 |
|
---|
451 | NTSTATUS normalize_name_map(TALLOC_CTX *mem_ctx,
|
---|
452 | struct winbindd_domain *domain,
|
---|
453 | const char *name,
|
---|
454 | char **normalized);
|
---|
455 | NTSTATUS normalize_name_unmap(TALLOC_CTX *mem_ctx,
|
---|
456 | char *name,
|
---|
457 | char **normalized);
|
---|
458 |
|
---|
459 | NTSTATUS resolve_username_to_alias(TALLOC_CTX *mem_ctx,
|
---|
460 | struct winbindd_domain *domain,
|
---|
461 | const char *name, char **alias);
|
---|
462 | NTSTATUS resolve_alias_to_username(TALLOC_CTX *mem_ctx,
|
---|
463 | struct winbindd_domain *domain,
|
---|
464 | const char *alias, char **name);
|
---|
465 |
|
---|
466 | bool winbindd_can_contact_domain(struct winbindd_domain *domain);
|
---|
467 | bool winbindd_internal_child(struct winbindd_child *child);
|
---|
468 | void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain);
|
---|
469 | void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain);
|
---|
470 | void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain);
|
---|
471 | void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain);
|
---|
472 | void set_auth_errors(struct winbindd_response *resp, NTSTATUS result);
|
---|
473 | bool is_domain_offline(const struct winbindd_domain *domain);
|
---|
474 | bool is_domain_online(const struct winbindd_domain *domain);
|
---|
475 | bool parse_sidlist(TALLOC_CTX *mem_ctx, const char *sidstr,
|
---|
476 | struct dom_sid **sids, uint32_t *num_sids);
|
---|
477 |
|
---|
478 | /* The following definitions come from winbindd/winbindd_wins.c */
|
---|
479 |
|
---|
480 | void winbindd_wins_byname(struct winbindd_cli_state *state);
|
---|
481 |
|
---|
482 | struct tevent_req *wb_ping_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
|
---|
483 | struct winbindd_cli_state *cli,
|
---|
484 | struct winbindd_request *request);
|
---|
485 | NTSTATUS wb_ping_recv(struct tevent_req *req,
|
---|
486 | struct winbindd_response *resp);
|
---|
487 |
|
---|
488 | enum winbindd_result winbindd_dual_ping(struct winbindd_domain *domain,
|
---|
489 | struct winbindd_cli_state *state);
|
---|
490 |
|
---|
491 | struct dcerpc_binding_handle *wbint_binding_handle(TALLOC_CTX *mem_ctx,
|
---|
492 | struct winbindd_domain *domain,
|
---|
493 | struct winbindd_child *child);
|
---|
494 | enum winbindd_result winbindd_dual_ndrcmd(struct winbindd_domain *domain,
|
---|
495 | struct winbindd_cli_state *state);
|
---|
496 |
|
---|
497 | struct tevent_req *wb_lookupsid_send(TALLOC_CTX *mem_ctx,
|
---|
498 | struct tevent_context *ev,
|
---|
499 | const struct dom_sid *sid);
|
---|
500 | NTSTATUS wb_lookupsid_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
501 | enum lsa_SidType *type, const char **domain,
|
---|
502 | const char **name);
|
---|
503 |
|
---|
504 | struct tevent_req *winbindd_lookupsid_send(TALLOC_CTX *mem_ctx,
|
---|
505 | struct tevent_context *ev,
|
---|
506 | struct winbindd_cli_state *cli,
|
---|
507 | struct winbindd_request *request);
|
---|
508 | NTSTATUS winbindd_lookupsid_recv(struct tevent_req *req,
|
---|
509 | struct winbindd_response *response);
|
---|
510 |
|
---|
511 | struct tevent_req *winbindd_lookupsids_send(TALLOC_CTX *mem_ctx,
|
---|
512 | struct tevent_context *ev,
|
---|
513 | struct winbindd_cli_state *cli,
|
---|
514 | struct winbindd_request *request);
|
---|
515 | NTSTATUS winbindd_lookupsids_recv(struct tevent_req *req,
|
---|
516 | struct winbindd_response *response);
|
---|
517 |
|
---|
518 | struct tevent_req *wb_lookupname_send(TALLOC_CTX *mem_ctx,
|
---|
519 | struct tevent_context *ev,
|
---|
520 | const char *dom_name, const char *name,
|
---|
521 | uint32_t flags);
|
---|
522 | NTSTATUS wb_lookupname_recv(struct tevent_req *req, struct dom_sid *sid,
|
---|
523 | enum lsa_SidType *type);
|
---|
524 |
|
---|
525 | struct tevent_req *winbindd_lookupname_send(TALLOC_CTX *mem_ctx,
|
---|
526 | struct tevent_context *ev,
|
---|
527 | struct winbindd_cli_state *cli,
|
---|
528 | struct winbindd_request *request);
|
---|
529 | NTSTATUS winbindd_lookupname_recv(struct tevent_req *req,
|
---|
530 | struct winbindd_response *response);
|
---|
531 |
|
---|
532 | struct tevent_req *winbindd_sid_to_uid_send(TALLOC_CTX *mem_ctx,
|
---|
533 | struct tevent_context *ev,
|
---|
534 | struct winbindd_cli_state *cli,
|
---|
535 | struct winbindd_request *request);
|
---|
536 | NTSTATUS winbindd_sid_to_uid_recv(struct tevent_req *req,
|
---|
537 | struct winbindd_response *response);
|
---|
538 |
|
---|
539 | struct tevent_req *winbindd_sid_to_gid_send(TALLOC_CTX *mem_ctx,
|
---|
540 | struct tevent_context *ev,
|
---|
541 | struct winbindd_cli_state *cli,
|
---|
542 | struct winbindd_request *request);
|
---|
543 | NTSTATUS winbindd_sid_to_gid_recv(struct tevent_req *req,
|
---|
544 | struct winbindd_response *response);
|
---|
545 |
|
---|
546 | struct tevent_req *wb_uid2sid_send(TALLOC_CTX *mem_ctx,
|
---|
547 | struct tevent_context *ev,
|
---|
548 | uid_t uid);
|
---|
549 | NTSTATUS wb_uid2sid_recv(struct tevent_req *req, struct dom_sid *sid);
|
---|
550 |
|
---|
551 | struct tevent_req *winbindd_uid_to_sid_send(TALLOC_CTX *mem_ctx,
|
---|
552 | struct tevent_context *ev,
|
---|
553 | struct winbindd_cli_state *cli,
|
---|
554 | struct winbindd_request *request);
|
---|
555 | NTSTATUS winbindd_uid_to_sid_recv(struct tevent_req *req,
|
---|
556 | struct winbindd_response *response);
|
---|
557 |
|
---|
558 | struct tevent_req *wb_gid2sid_send(TALLOC_CTX *mem_ctx,
|
---|
559 | struct tevent_context *ev,
|
---|
560 | gid_t gid);
|
---|
561 | NTSTATUS wb_gid2sid_recv(struct tevent_req *req, struct dom_sid *sid);
|
---|
562 |
|
---|
563 | struct tevent_req *winbindd_gid_to_sid_send(TALLOC_CTX *mem_ctx,
|
---|
564 | struct tevent_context *ev,
|
---|
565 | struct winbindd_cli_state *cli,
|
---|
566 | struct winbindd_request *request);
|
---|
567 | NTSTATUS winbindd_gid_to_sid_recv(struct tevent_req *req,
|
---|
568 | struct winbindd_response *response);
|
---|
569 |
|
---|
570 | struct tevent_req *winbindd_allocate_uid_send(TALLOC_CTX *mem_ctx,
|
---|
571 | struct tevent_context *ev,
|
---|
572 | struct winbindd_cli_state *cli,
|
---|
573 | struct winbindd_request *request);
|
---|
574 | NTSTATUS winbindd_allocate_uid_recv(struct tevent_req *req,
|
---|
575 | struct winbindd_response *response);
|
---|
576 |
|
---|
577 | struct tevent_req *winbindd_allocate_gid_send(TALLOC_CTX *mem_ctx,
|
---|
578 | struct tevent_context *ev,
|
---|
579 | struct winbindd_cli_state *cli,
|
---|
580 | struct winbindd_request *request);
|
---|
581 | NTSTATUS winbindd_allocate_gid_recv(struct tevent_req *req,
|
---|
582 | struct winbindd_response *response);
|
---|
583 |
|
---|
584 | struct tevent_req *wb_queryuser_send(TALLOC_CTX *mem_ctx,
|
---|
585 | struct tevent_context *ev,
|
---|
586 | const struct dom_sid *user_sid);
|
---|
587 | NTSTATUS wb_queryuser_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
588 | struct wbint_userinfo **pinfo);
|
---|
589 |
|
---|
590 | struct tevent_req *wb_getpwsid_send(TALLOC_CTX *mem_ctx,
|
---|
591 | struct tevent_context *ev,
|
---|
592 | const struct dom_sid *user_sid,
|
---|
593 | struct winbindd_pw *pw);
|
---|
594 | NTSTATUS wb_getpwsid_recv(struct tevent_req *req);
|
---|
595 |
|
---|
596 | struct tevent_req *winbindd_getpwsid_send(TALLOC_CTX *mem_ctx,
|
---|
597 | struct tevent_context *ev,
|
---|
598 | struct winbindd_cli_state *cli,
|
---|
599 | struct winbindd_request *request);
|
---|
600 | NTSTATUS winbindd_getpwsid_recv(struct tevent_req *req,
|
---|
601 | struct winbindd_response *response);
|
---|
602 |
|
---|
603 | struct tevent_req *winbindd_getpwnam_send(TALLOC_CTX *mem_ctx,
|
---|
604 | struct tevent_context *ev,
|
---|
605 | struct winbindd_cli_state *cli,
|
---|
606 | struct winbindd_request *request);
|
---|
607 | NTSTATUS winbindd_getpwnam_recv(struct tevent_req *req,
|
---|
608 | struct winbindd_response *response);
|
---|
609 |
|
---|
610 | struct tevent_req *winbindd_getpwuid_send(TALLOC_CTX *mem_ctx,
|
---|
611 | struct tevent_context *ev,
|
---|
612 | struct winbindd_cli_state *cli,
|
---|
613 | struct winbindd_request *request);
|
---|
614 | NTSTATUS winbindd_getpwuid_recv(struct tevent_req *req,
|
---|
615 | struct winbindd_response *response);
|
---|
616 | struct tevent_req *wb_lookupuseraliases_send(TALLOC_CTX *mem_ctx,
|
---|
617 | struct tevent_context *ev,
|
---|
618 | struct winbindd_domain *domain,
|
---|
619 | int num_sids,
|
---|
620 | const struct dom_sid *sids);
|
---|
621 | NTSTATUS wb_lookupuseraliases_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
622 | uint32_t *num_aliases, uint32_t **aliases);
|
---|
623 | struct tevent_req *winbindd_getsidaliases_send(TALLOC_CTX *mem_ctx,
|
---|
624 | struct tevent_context *ev,
|
---|
625 | struct winbindd_cli_state *cli,
|
---|
626 | struct winbindd_request *request);
|
---|
627 | NTSTATUS winbindd_getsidaliases_recv(struct tevent_req *req,
|
---|
628 | struct winbindd_response *response);
|
---|
629 | struct tevent_req *wb_lookupusergroups_send(TALLOC_CTX *mem_ctx,
|
---|
630 | struct tevent_context *ev,
|
---|
631 | struct winbindd_domain *domain,
|
---|
632 | const struct dom_sid *sid);
|
---|
633 | NTSTATUS wb_lookupusergroups_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
634 | int *num_sids, struct dom_sid **sids);
|
---|
635 |
|
---|
636 | struct tevent_req *winbindd_getuserdomgroups_send(TALLOC_CTX *mem_ctx,
|
---|
637 | struct tevent_context *ev,
|
---|
638 | struct winbindd_cli_state *cli,
|
---|
639 | struct winbindd_request *request);
|
---|
640 | NTSTATUS winbindd_getuserdomgroups_recv(struct tevent_req *req,
|
---|
641 | struct winbindd_response *response);
|
---|
642 | struct tevent_req *wb_gettoken_send(TALLOC_CTX *mem_ctx,
|
---|
643 | struct tevent_context *ev,
|
---|
644 | const struct dom_sid *sid);
|
---|
645 | NTSTATUS wb_gettoken_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
646 | int *num_sids, struct dom_sid **sids);
|
---|
647 | struct tevent_req *winbindd_getgroups_send(TALLOC_CTX *mem_ctx,
|
---|
648 | struct tevent_context *ev,
|
---|
649 | struct winbindd_cli_state *cli,
|
---|
650 | struct winbindd_request *request);
|
---|
651 | NTSTATUS winbindd_getgroups_recv(struct tevent_req *req,
|
---|
652 | struct winbindd_response *response);
|
---|
653 |
|
---|
654 | struct tevent_req *wb_seqnum_send(TALLOC_CTX *mem_ctx,
|
---|
655 | struct tevent_context *ev,
|
---|
656 | struct winbindd_domain *domain);
|
---|
657 | NTSTATUS wb_seqnum_recv(struct tevent_req *req, uint32_t *seqnum);
|
---|
658 |
|
---|
659 | struct tevent_req *wb_seqnums_send(TALLOC_CTX *mem_ctx,
|
---|
660 | struct tevent_context *ev);
|
---|
661 | NTSTATUS wb_seqnums_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
662 | int *num_domains, struct winbindd_domain ***domains,
|
---|
663 | NTSTATUS **stati, uint32_t **seqnums);
|
---|
664 |
|
---|
665 | struct tevent_req *winbindd_show_sequence_send(TALLOC_CTX *mem_ctx,
|
---|
666 | struct tevent_context *ev,
|
---|
667 | struct winbindd_cli_state *cli,
|
---|
668 | struct winbindd_request *request);
|
---|
669 | NTSTATUS winbindd_show_sequence_recv(struct tevent_req *req,
|
---|
670 | struct winbindd_response *response);
|
---|
671 |
|
---|
672 | struct tevent_req *wb_group_members_send(TALLOC_CTX *mem_ctx,
|
---|
673 | struct tevent_context *ev,
|
---|
674 | const struct dom_sid *sid,
|
---|
675 | enum lsa_SidType type,
|
---|
676 | int max_depth);
|
---|
677 | NTSTATUS wb_group_members_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
678 | struct talloc_dict **members);
|
---|
679 | NTSTATUS add_wbint_Principal_to_dict(TALLOC_CTX *mem_ctx,
|
---|
680 | struct dom_sid *sid,
|
---|
681 | const char **name,
|
---|
682 | enum lsa_SidType type,
|
---|
683 | struct talloc_dict *dict);
|
---|
684 |
|
---|
685 | struct tevent_req *wb_getgrsid_send(TALLOC_CTX *mem_ctx,
|
---|
686 | struct tevent_context *ev,
|
---|
687 | const struct dom_sid *group_sid,
|
---|
688 | int max_nesting);
|
---|
689 | NTSTATUS wb_getgrsid_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
690 | const char **domname, const char **name, gid_t *gid,
|
---|
691 | struct talloc_dict **members);
|
---|
692 |
|
---|
693 | struct tevent_req *winbindd_getgrgid_send(TALLOC_CTX *mem_ctx,
|
---|
694 | struct tevent_context *ev,
|
---|
695 | struct winbindd_cli_state *cli,
|
---|
696 | struct winbindd_request *request);
|
---|
697 | NTSTATUS winbindd_getgrgid_recv(struct tevent_req *req,
|
---|
698 | struct winbindd_response *response);
|
---|
699 |
|
---|
700 | struct tevent_req *winbindd_getgrnam_send(TALLOC_CTX *mem_ctx,
|
---|
701 | struct tevent_context *ev,
|
---|
702 | struct winbindd_cli_state *cli,
|
---|
703 | struct winbindd_request *request);
|
---|
704 | NTSTATUS winbindd_getgrnam_recv(struct tevent_req *req,
|
---|
705 | struct winbindd_response *response);
|
---|
706 |
|
---|
707 | struct tevent_req *winbindd_getusersids_send(TALLOC_CTX *mem_ctx,
|
---|
708 | struct tevent_context *ev,
|
---|
709 | struct winbindd_cli_state *cli,
|
---|
710 | struct winbindd_request *request);
|
---|
711 | NTSTATUS winbindd_getusersids_recv(struct tevent_req *req,
|
---|
712 | struct winbindd_response *response);
|
---|
713 |
|
---|
714 | struct tevent_req *winbindd_lookuprids_send(TALLOC_CTX *mem_ctx,
|
---|
715 | struct tevent_context *ev,
|
---|
716 | struct winbindd_cli_state *cli,
|
---|
717 | struct winbindd_request *request);
|
---|
718 | NTSTATUS winbindd_lookuprids_recv(struct tevent_req *req,
|
---|
719 | struct winbindd_response *response);
|
---|
720 |
|
---|
721 | struct tevent_req *wb_query_user_list_send(TALLOC_CTX *mem_ctx,
|
---|
722 | struct tevent_context *ev,
|
---|
723 | struct winbindd_domain *domain);
|
---|
724 | NTSTATUS wb_query_user_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
725 | int *num_users,
|
---|
726 | struct wbint_userinfo **users);
|
---|
727 |
|
---|
728 | struct tevent_req *wb_query_group_list_send(TALLOC_CTX *mem_ctx,
|
---|
729 | struct tevent_context *ev,
|
---|
730 | struct winbindd_domain *domain);
|
---|
731 | NTSTATUS wb_query_group_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
732 | int *num_users,
|
---|
733 | struct wbint_Principal **groups);
|
---|
734 |
|
---|
735 |
|
---|
736 | struct tevent_req *wb_fill_pwent_send(TALLOC_CTX *mem_ctx,
|
---|
737 | struct tevent_context *ev,
|
---|
738 | struct wbint_userinfo *info,
|
---|
739 | struct winbindd_pw *pw);
|
---|
740 | NTSTATUS wb_fill_pwent_recv(struct tevent_req *req);
|
---|
741 |
|
---|
742 | struct tevent_req *wb_next_pwent_send(TALLOC_CTX *mem_ctx,
|
---|
743 | struct tevent_context *ev,
|
---|
744 | struct getpwent_state *gstate,
|
---|
745 | struct winbindd_pw *pw);
|
---|
746 | NTSTATUS wb_next_pwent_recv(struct tevent_req *req);
|
---|
747 |
|
---|
748 | struct tevent_req *winbindd_setpwent_send(TALLOC_CTX *mem_ctx,
|
---|
749 | struct tevent_context *ev,
|
---|
750 | struct winbindd_cli_state *cli,
|
---|
751 | struct winbindd_request *request);
|
---|
752 | NTSTATUS winbindd_setpwent_recv(struct tevent_req *req,
|
---|
753 | struct winbindd_response *presp);
|
---|
754 |
|
---|
755 | struct tevent_req *winbindd_getpwent_send(TALLOC_CTX *mem_ctx,
|
---|
756 | struct tevent_context *ev,
|
---|
757 | struct winbindd_cli_state *cli,
|
---|
758 | struct winbindd_request *request);
|
---|
759 | NTSTATUS winbindd_getpwent_recv(struct tevent_req *req,
|
---|
760 | struct winbindd_response *response);
|
---|
761 |
|
---|
762 | struct tevent_req *winbindd_endpwent_send(TALLOC_CTX *mem_ctx,
|
---|
763 | struct tevent_context *ev,
|
---|
764 | struct winbindd_cli_state *cli,
|
---|
765 | struct winbindd_request *request);
|
---|
766 | NTSTATUS winbindd_endpwent_recv(struct tevent_req *req,
|
---|
767 | struct winbindd_response *response);
|
---|
768 |
|
---|
769 | struct tevent_req *winbindd_dsgetdcname_send(TALLOC_CTX *mem_ctx,
|
---|
770 | struct tevent_context *ev,
|
---|
771 | struct winbindd_cli_state *cli,
|
---|
772 | struct winbindd_request *request);
|
---|
773 | NTSTATUS winbindd_dsgetdcname_recv(struct tevent_req *req,
|
---|
774 | struct winbindd_response *response);
|
---|
775 |
|
---|
776 | struct tevent_req *wb_dsgetdcname_send(TALLOC_CTX *mem_ctx,
|
---|
777 | struct tevent_context *ev,
|
---|
778 | const char *domain_name,
|
---|
779 | const struct GUID *domain_guid,
|
---|
780 | const char *site_name,
|
---|
781 | uint32_t flags);
|
---|
782 | NTSTATUS wb_dsgetdcname_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
783 | struct netr_DsRGetDCNameInfo **pdcinfo);
|
---|
784 |
|
---|
785 | struct tevent_req *winbindd_getdcname_send(TALLOC_CTX *mem_ctx,
|
---|
786 | struct tevent_context *ev,
|
---|
787 | struct winbindd_cli_state *cli,
|
---|
788 | struct winbindd_request *request);
|
---|
789 | NTSTATUS winbindd_getdcname_recv(struct tevent_req *req,
|
---|
790 | struct winbindd_response *response);
|
---|
791 |
|
---|
792 | struct tevent_req *wb_next_grent_send(TALLOC_CTX *mem_ctx,
|
---|
793 | struct tevent_context *ev,
|
---|
794 | int max_nesting,
|
---|
795 | struct getgrent_state *gstate,
|
---|
796 | struct winbindd_gr *gr);
|
---|
797 | NTSTATUS wb_next_grent_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
798 | struct talloc_dict **members);
|
---|
799 |
|
---|
800 | struct tevent_req *winbindd_setgrent_send(TALLOC_CTX *mem_ctx,
|
---|
801 | struct tevent_context *ev,
|
---|
802 | struct winbindd_cli_state *cli,
|
---|
803 | struct winbindd_request *request);
|
---|
804 | NTSTATUS winbindd_setgrent_recv(struct tevent_req *req,
|
---|
805 | struct winbindd_response *response);
|
---|
806 | struct tevent_req *winbindd_getgrent_send(TALLOC_CTX *mem_ctx,
|
---|
807 | struct tevent_context *ev,
|
---|
808 | struct winbindd_cli_state *cli,
|
---|
809 | struct winbindd_request *request);
|
---|
810 | NTSTATUS winbindd_getgrent_recv(struct tevent_req *req,
|
---|
811 | struct winbindd_response *response);
|
---|
812 | struct tevent_req *winbindd_endgrent_send(TALLOC_CTX *mem_ctx,
|
---|
813 | struct tevent_context *ev,
|
---|
814 | struct winbindd_cli_state *cli,
|
---|
815 | struct winbindd_request *request);
|
---|
816 | NTSTATUS winbindd_endgrent_recv(struct tevent_req *req,
|
---|
817 | struct winbindd_response *response);
|
---|
818 |
|
---|
819 | struct tevent_req *winbindd_list_users_send(TALLOC_CTX *mem_ctx,
|
---|
820 | struct tevent_context *ev,
|
---|
821 | struct winbindd_cli_state *cli,
|
---|
822 | struct winbindd_request *request);
|
---|
823 | NTSTATUS winbindd_list_users_recv(struct tevent_req *req,
|
---|
824 | struct winbindd_response *response);
|
---|
825 |
|
---|
826 | struct tevent_req *winbindd_list_groups_send(TALLOC_CTX *mem_ctx,
|
---|
827 | struct tevent_context *ev,
|
---|
828 | struct winbindd_cli_state *cli,
|
---|
829 | struct winbindd_request *request);
|
---|
830 | NTSTATUS winbindd_list_groups_recv(struct tevent_req *req,
|
---|
831 | struct winbindd_response *response);
|
---|
832 |
|
---|
833 | struct tevent_req *winbindd_check_machine_acct_send(TALLOC_CTX *mem_ctx,
|
---|
834 | struct tevent_context *ev,
|
---|
835 | struct winbindd_cli_state *cli,
|
---|
836 | struct winbindd_request *request);
|
---|
837 | NTSTATUS winbindd_check_machine_acct_recv(struct tevent_req *req,
|
---|
838 | struct winbindd_response *presp);
|
---|
839 |
|
---|
840 | struct tevent_req *winbindd_ping_dc_send(TALLOC_CTX *mem_ctx,
|
---|
841 | struct tevent_context *ev,
|
---|
842 | struct winbindd_cli_state *cli,
|
---|
843 | struct winbindd_request *request);
|
---|
844 | NTSTATUS winbindd_ping_dc_recv(struct tevent_req *req,
|
---|
845 | struct winbindd_response *presp);
|
---|
846 |
|
---|
847 | struct tevent_req *winbindd_change_machine_acct_send(TALLOC_CTX *mem_ctx,
|
---|
848 | struct tevent_context *ev,
|
---|
849 | struct winbindd_cli_state *cli,
|
---|
850 | struct winbindd_request *request);
|
---|
851 | NTSTATUS winbindd_change_machine_acct_recv(struct tevent_req *req,
|
---|
852 | struct winbindd_response *presp);
|
---|
853 |
|
---|
854 | struct tevent_req *winbindd_pam_auth_send(TALLOC_CTX *mem_ctx,
|
---|
855 | struct tevent_context *ev,
|
---|
856 | struct winbindd_cli_state *cli,
|
---|
857 | struct winbindd_request *request);
|
---|
858 | NTSTATUS winbindd_pam_auth_recv(struct tevent_req *req,
|
---|
859 | struct winbindd_response *response);
|
---|
860 |
|
---|
861 | struct tevent_req *winbindd_pam_auth_crap_send(
|
---|
862 | TALLOC_CTX *mem_ctx,
|
---|
863 | struct tevent_context *ev,
|
---|
864 | struct winbindd_cli_state *cli,
|
---|
865 | struct winbindd_request *request);
|
---|
866 | NTSTATUS winbindd_pam_auth_crap_recv(struct tevent_req *req,
|
---|
867 | struct winbindd_response *response);
|
---|
868 |
|
---|
869 | struct tevent_req *winbindd_pam_chauthtok_send(
|
---|
870 | TALLOC_CTX *mem_ctx,
|
---|
871 | struct tevent_context *ev,
|
---|
872 | struct winbindd_cli_state *cli,
|
---|
873 | struct winbindd_request *request);
|
---|
874 | NTSTATUS winbindd_pam_chauthtok_recv(struct tevent_req *req,
|
---|
875 | struct winbindd_response *response);
|
---|
876 |
|
---|
877 | struct tevent_req *winbindd_pam_logoff_send(TALLOC_CTX *mem_ctx,
|
---|
878 | struct tevent_context *ev,
|
---|
879 | struct winbindd_cli_state *cli,
|
---|
880 | struct winbindd_request *request);
|
---|
881 | NTSTATUS winbindd_pam_logoff_recv(struct tevent_req *req,
|
---|
882 | struct winbindd_response *response);
|
---|
883 |
|
---|
884 | struct tevent_req *winbindd_pam_chng_pswd_auth_crap_send(
|
---|
885 | TALLOC_CTX *mem_ctx,
|
---|
886 | struct tevent_context *ev,
|
---|
887 | struct winbindd_cli_state *cli,
|
---|
888 | struct winbindd_request *request);
|
---|
889 | NTSTATUS winbindd_pam_chng_pswd_auth_crap_recv(
|
---|
890 | struct tevent_req *req,
|
---|
891 | struct winbindd_response *response);
|
---|
892 |
|
---|
893 | struct tevent_req *wb_lookupsids_send(TALLOC_CTX *mem_ctx,
|
---|
894 | struct tevent_context *ev,
|
---|
895 | struct dom_sid *sids,
|
---|
896 | uint32_t num_sids);
|
---|
897 | NTSTATUS wb_lookupsids_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
|
---|
898 | struct lsa_RefDomainList **domains,
|
---|
899 | struct lsa_TransNameArray **names);
|
---|
900 |
|
---|
901 | struct tevent_req *wb_sids2xids_send(TALLOC_CTX *mem_ctx,
|
---|
902 | struct tevent_context *ev,
|
---|
903 | const struct dom_sid *sids,
|
---|
904 | const uint32_t num_sids);
|
---|
905 | NTSTATUS wb_sids2xids_recv(struct tevent_req *req,
|
---|
906 | struct unixid xids[], uint32_t num_xids);
|
---|
907 | struct tevent_req *winbindd_sids_to_xids_send(TALLOC_CTX *mem_ctx,
|
---|
908 | struct tevent_context *ev,
|
---|
909 | struct winbindd_cli_state *cli,
|
---|
910 | struct winbindd_request *request);
|
---|
911 | NTSTATUS winbindd_sids_to_xids_recv(struct tevent_req *req,
|
---|
912 | struct winbindd_response *response);
|
---|
913 | struct tevent_req *winbindd_wins_byip_send(TALLOC_CTX *mem_ctx,
|
---|
914 | struct tevent_context *ev,
|
---|
915 | struct winbindd_cli_state *cli,
|
---|
916 | struct winbindd_request *request);
|
---|
917 | NTSTATUS winbindd_wins_byip_recv(struct tevent_req *req,
|
---|
918 | struct winbindd_response *presp);
|
---|
919 | struct tevent_req *winbindd_wins_byname_send(TALLOC_CTX *mem_ctx,
|
---|
920 | struct tevent_context *ev,
|
---|
921 | struct winbindd_cli_state *cli,
|
---|
922 | struct winbindd_request *request);
|
---|
923 | NTSTATUS winbindd_wins_byname_recv(struct tevent_req *req,
|
---|
924 | struct winbindd_response *presp);
|
---|
925 |
|
---|
926 |
|
---|
927 | /* The following definitions come from winbindd/winbindd_samr.c */
|
---|
928 |
|
---|
929 | NTSTATUS open_internal_samr_conn(TALLOC_CTX *mem_ctx,
|
---|
930 | struct winbindd_domain *domain,
|
---|
931 | struct rpc_pipe_client **samr_pipe,
|
---|
932 | struct policy_handle *samr_domain_hnd);
|
---|
933 | NTSTATUS open_internal_lsa_conn(TALLOC_CTX *mem_ctx,
|
---|
934 | struct rpc_pipe_client **lsa_pipe,
|
---|
935 | struct policy_handle *lsa_hnd);
|
---|
936 |
|
---|
937 | /* The following definitions come from winbindd/winbindd_ads.c */
|
---|
938 | ADS_STATUS ads_idmap_cached_connection(ADS_STRUCT **adsp, const char *dom_name);
|
---|
939 |
|
---|
940 | /* The following definitions come from winbindd/winbindd_irpc.c */
|
---|
941 | NTSTATUS wb_irpc_register(void);
|
---|
942 |
|
---|
943 | /* The following definitions come from winbindd/winbindd_reconnect.c */
|
---|
944 | bool reconnect_need_retry(NTSTATUS status, struct winbindd_domain *domain);
|
---|
945 |
|
---|
946 | #endif /* _WINBINDD_PROTO_H_ */
|
---|