tevent: release 0.16.1
[Samba.git] / source3 / winbindd / winbindd_proto.h
bloba5e8c8b8df8bc2a8e5cd3c923f905956f04ffbaa
1 /*
2 * Unix SMB/CIFS implementation.
3 * collected prototypes header
5 * frozen from "make proto" in May 2008
7 * Copyright (C) Michael Adam 2008
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.
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.
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/>.
23 #ifndef _WINBINDD_PROTO_H_
24 #define _WINBINDD_PROTO_H_
26 /* The following definitions come from winbindd/winbindd.c */
27 struct imessaging_context *winbind_imessaging_context(void);
28 void winbindd_terminate(bool is_parent);
29 bool winbindd_setup_sig_term_handler(bool parent);
30 bool winbindd_setup_stdin_handler(bool parent, bool foreground);
31 bool winbindd_setup_sig_hup_handler(const char *lfile);
32 bool winbindd_use_idmap_cache(void);
33 bool winbindd_use_cache(void);
34 void winbindd_set_use_cache(bool use_cache);
35 char *get_winbind_priv_pipe_dir(void);
36 void winbindd_flush_caches(void);
37 void winbind_debug_call_depth_setup(size_t *depth);
38 void winbind_call_flow(void *private_data,
39 enum tevent_thread_call_depth_cmd cmd,
40 struct tevent_req *req,
41 size_t depth,
42 const char *fname);
43 bool winbindd_reload_services_file(const char *lfile);
45 /* The following definitions come from winbindd/winbindd_ads.c */
47 /* The following definitions come from winbindd/winbindd_rpc.c */
49 NTSTATUS winbindd_lookup_sids(TALLOC_CTX *mem_ctx,
50 struct winbindd_domain *domain,
51 uint32_t num_sids,
52 const struct dom_sid *sids,
53 char ***domains,
54 char ***names,
55 enum lsa_SidType **types);
56 NTSTATUS rpc_lookup_sids(TALLOC_CTX *mem_ctx,
57 struct winbindd_domain *domain,
58 struct lsa_SidArray *sids,
59 struct lsa_RefDomainList **pdomains,
60 struct lsa_TransNameArray **pnames);
62 /* The following definitions come from winbindd/winbindd_cache.c */
64 NTSTATUS wb_cache_query_user_list(struct winbindd_domain *domain,
65 TALLOC_CTX *mem_ctx,
66 uint32_t **prids);
67 NTSTATUS wb_cache_enum_dom_groups(struct winbindd_domain *domain,
68 TALLOC_CTX *mem_ctx,
69 uint32_t *num_entries,
70 struct wb_acct_info **info);
71 NTSTATUS wb_cache_enum_local_groups(struct winbindd_domain *domain,
72 TALLOC_CTX *mem_ctx,
73 uint32_t *num_entries,
74 struct wb_acct_info **info);
75 NTSTATUS wb_cache_name_to_sid(struct winbindd_domain *domain,
76 TALLOC_CTX *mem_ctx,
77 const char *domain_name,
78 const char *name,
79 uint32_t flags,
80 struct dom_sid *sid,
81 enum lsa_SidType *type);
82 NTSTATUS wb_cache_sid_to_name(struct winbindd_domain *domain,
83 TALLOC_CTX *mem_ctx,
84 const struct dom_sid *sid,
85 char **domain_name,
86 char **name,
87 enum lsa_SidType *type);
88 NTSTATUS wb_cache_rids_to_names(struct winbindd_domain *domain,
89 TALLOC_CTX *mem_ctx,
90 const struct dom_sid *domain_sid,
91 uint32_t *rids,
92 size_t num_rids,
93 char **domain_name,
94 char ***names,
95 enum lsa_SidType **types);
96 NTSTATUS wb_cache_lookup_usergroups(struct winbindd_domain *domain,
97 TALLOC_CTX *mem_ctx,
98 const struct dom_sid *user_sid,
99 uint32_t *pnum_sids,
100 struct dom_sid **psids);
101 NTSTATUS wb_cache_lookup_useraliases(struct winbindd_domain *domain,
102 TALLOC_CTX *mem_ctx,
103 uint32_t num_sids,
104 const struct dom_sid *sids,
105 uint32_t *num_aliases,
106 uint32_t **alias_rids);
107 NTSTATUS wb_cache_lookup_groupmem(struct winbindd_domain *domain,
108 TALLOC_CTX *mem_ctx,
109 const struct dom_sid *group_sid,
110 enum lsa_SidType type,
111 uint32_t *num_names,
112 struct dom_sid **sid_mem,
113 char ***names,
114 uint32_t **name_types);
115 NTSTATUS wb_cache_lookup_aliasmem(struct winbindd_domain *domain,
116 TALLOC_CTX *mem_ctx,
117 const struct dom_sid *group_sid,
118 enum lsa_SidType type,
119 uint32_t *num_names,
120 struct dom_sid **sid_mem);
121 NTSTATUS wb_cache_sequence_number(struct winbindd_domain *domain,
122 uint32_t *seq);
123 NTSTATUS wb_cache_lockout_policy(struct winbindd_domain *domain,
124 TALLOC_CTX *mem_ctx,
125 struct samr_DomInfo12 *policy);
126 NTSTATUS wb_cache_password_policy(struct winbindd_domain *domain,
127 TALLOC_CTX *mem_ctx,
128 struct samr_DomInfo1 *policy);
129 NTSTATUS wb_cache_trusted_domains(struct winbindd_domain *domain,
130 TALLOC_CTX *mem_ctx,
131 struct netr_DomainTrustList *trusts);
133 NTSTATUS wcache_cached_creds_exist(struct winbindd_domain *domain, const struct dom_sid *sid);
134 NTSTATUS wcache_get_creds(struct winbindd_domain *domain,
135 TALLOC_CTX *mem_ctx,
136 const struct dom_sid *sid,
137 const uint8_t **cached_nt_pass,
138 const uint8_t **cached_salt);
139 NTSTATUS wcache_save_creds(struct winbindd_domain *domain,
140 const struct dom_sid *sid,
141 const uint8_t nt_pass[NT_HASH_LEN]);
142 void wcache_invalidate_samlogon(struct winbindd_domain *domain,
143 const struct dom_sid *user_sid);
144 bool wcache_invalidate_cache(void);
145 bool wcache_invalidate_cache_noinit(void);
146 bool initialize_winbindd_cache(void);
147 void close_winbindd_cache(void);
148 bool lookup_cached_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid,
149 char **domain_name, char **name,
150 enum lsa_SidType *type);
151 bool lookup_cached_name(const char *namespace,
152 const char *domain_name,
153 const char *name,
154 struct dom_sid *sid,
155 enum lsa_SidType *type);
156 void cache_name2sid_trusted(struct winbindd_domain *domain,
157 const char *domain_name,
158 const char *name,
159 enum lsa_SidType type,
160 const struct dom_sid *sid);
161 void cache_name2sid(struct winbindd_domain *domain,
162 const char *domain_name, const char *name,
163 enum lsa_SidType type, const struct dom_sid *sid);
164 NTSTATUS wcache_query_user_fullname(struct winbindd_domain *domain,
165 TALLOC_CTX *mem_ctx,
166 const struct dom_sid *user_sid,
167 const char **full_name);
169 NTSTATUS wcache_count_cached_creds(struct winbindd_domain *domain, int *count);
170 NTSTATUS wcache_remove_oldest_cached_creds(struct winbindd_domain *domain, const struct dom_sid *sid) ;
171 bool set_global_winbindd_state_offline(void);
172 void set_global_winbindd_state_online(void);
173 bool get_global_winbindd_state_offline(void);
174 int winbindd_validate_cache(void);
175 int winbindd_validate_cache_nobackup(void);
176 bool winbindd_cache_validate_and_initialize(void);
177 bool wcache_tdc_fetch_list( struct winbindd_tdc_domain **domains, size_t *num_domains );
178 bool wcache_tdc_add_domain( struct winbindd_domain *domain );
179 struct winbindd_tdc_domain * wcache_tdc_fetch_domain( TALLOC_CTX *ctx, const char *name );
180 void wcache_tdc_clear( void );
181 bool wcache_store_seqnum(const char *domain_name, uint32_t seqnum,
182 time_t last_seq_check);
183 bool wcache_fetch_ndr(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
184 uint32_t opnum, const DATA_BLOB *req, DATA_BLOB *resp);
185 void wcache_store_ndr(struct winbindd_domain *domain, uint32_t opnum,
186 const DATA_BLOB *req, const DATA_BLOB *resp);
188 /* The following definitions come from winbindd/winbindd_ccache_access.c */
190 bool winbindd_ccache_ntlm_auth(struct winbindd_cli_state *state);
191 enum winbindd_result winbindd_dual_ccache_ntlm_auth(struct winbindd_domain *domain,
192 struct winbindd_cli_state *state);
193 bool winbindd_ccache_save(struct winbindd_cli_state *state);
195 /* The following definitions come from winbindd/winbindd_cm.c */
196 void winbind_msg_domain_offline(struct messaging_context *msg_ctx,
197 void *private_data,
198 uint32_t msg_type,
199 struct server_id server_id,
200 DATA_BLOB *data);
201 void winbind_msg_domain_online(struct messaging_context *msg_ctx,
202 void *private_data,
203 uint32_t msg_type,
204 struct server_id server_id,
205 DATA_BLOB *data);
207 void set_domain_offline(struct winbindd_domain *domain);
208 void set_domain_online_request(struct winbindd_domain *domain);
210 struct ndr_interface_table;
211 NTSTATUS wb_open_internal_pipe(TALLOC_CTX *mem_ctx,
212 const struct ndr_interface_table *table,
213 struct rpc_pipe_client **ret_pipe);
214 void invalidate_cm_connection(struct winbindd_domain *domain);
215 void close_conns_after_fork(void);
216 NTSTATUS init_dc_connection(struct winbindd_domain *domain, bool need_rw_dc);
217 NTSTATUS cm_connect_sam(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
218 bool need_rw_dc,
219 struct rpc_pipe_client **cli, struct policy_handle *sam_handle);
220 NTSTATUS cm_connect_lsa(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
221 struct rpc_pipe_client **cli, struct policy_handle *lsa_policy);
222 NTSTATUS cm_connect_lsat(struct winbindd_domain *domain,
223 TALLOC_CTX *mem_ctx,
224 struct rpc_pipe_client **cli,
225 struct policy_handle *lsa_policy);
226 NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
227 struct rpc_pipe_client **cli);
228 NTSTATUS cm_connect_netlogon_secure(struct winbindd_domain *domain,
229 struct rpc_pipe_client **cli,
230 struct netlogon_creds_cli_context **ppdc);
231 bool fetch_current_dc_from_gencache(TALLOC_CTX *mem_ctx,
232 const char *domain_name,
233 char **p_dc_name, char **p_dc_ip);
235 /* The following definitions come from winbindd/winbindd_cred_cache.c */
237 bool ccache_entry_exists(const char *username);
238 bool ccache_entry_identical(const char *username,
239 uid_t uid,
240 const char *ccname);
241 void ccache_remove_all_after_fork(void);
242 void ccache_regain_all_now(void);
243 NTSTATUS add_ccache_to_list(const char *princ_name,
244 const char *ccname,
245 const char *username,
246 const char *password,
247 const char *realm,
248 uid_t uid,
249 time_t create_time,
250 time_t ticket_end,
251 time_t renew_until,
252 bool postponed_request,
253 const char *canon_principal,
254 const char *canon_realm);
255 NTSTATUS remove_ccache(const char *username);
256 struct WINBINDD_MEMORY_CREDS *find_memory_creds_by_name(const char *username);
257 NTSTATUS winbindd_add_memory_creds(const char *username,
258 uid_t uid,
259 const char *pass);
260 NTSTATUS winbindd_delete_memory_creds(const char *username);
261 NTSTATUS winbindd_replace_memory_creds(const char *username,
262 const char *pass);
264 /* The following definitions come from winbindd/winbindd_creds.c */
266 NTSTATUS winbindd_get_creds(struct winbindd_domain *domain,
267 TALLOC_CTX *mem_ctx,
268 const struct dom_sid *sid,
269 struct netr_SamInfo3 **info3,
270 const uint8_t **cached_nt_pass,
271 const uint8_t **cred_salt);
272 NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
273 const char *user,
274 const char *pass,
275 struct netr_SamInfo3 *info3);
276 NTSTATUS winbindd_update_creds_by_info3(struct winbindd_domain *domain,
277 const char *user,
278 const char *pass,
279 struct netr_SamInfo3 *info3);
280 NTSTATUS winbindd_update_creds_by_name(struct winbindd_domain *domain,
281 const char *user,
282 const char *pass);
284 /* The following definitions come from winbindd/winbindd_domain.c */
286 void setup_domain_child(struct winbindd_domain *domain);
288 /* The following definitions come from winbindd/winbindd_dual.c */
290 struct dcerpc_binding_handle *dom_child_handle(struct winbindd_domain *domain);
292 struct tevent_req *wb_child_request_send(TALLOC_CTX *mem_ctx,
293 struct tevent_context *ev,
294 struct winbindd_child *child,
295 struct winbindd_request *request);
296 int wb_child_request_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
297 struct winbindd_response **presponse, int *err);
298 struct tevent_req *wb_domain_request_send(TALLOC_CTX *mem_ctx,
299 struct tevent_context *ev,
300 struct winbindd_domain *domain,
301 struct winbindd_request *request);
302 int wb_domain_request_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
303 struct winbindd_response **presponse, int *err);
305 void setup_child(struct winbindd_domain *domain, struct winbindd_child *child,
306 const char *logprefix,
307 const char *logname);
308 void winbind_child_died(pid_t pid);
309 void winbindd_flush_negative_conn_cache(struct winbindd_domain *domain);
310 void winbind_msg_debug(struct messaging_context *msg_ctx,
311 void *private_data,
312 uint32_t msg_type,
313 struct server_id server_id,
314 DATA_BLOB *data);
315 void winbind_disconnect_dc_parent(struct messaging_context *msg_ctx,
316 void *private_data,
317 uint32_t msg_type,
318 struct server_id server_id,
319 DATA_BLOB *data);
320 void winbind_msg_offline(struct messaging_context *msg_ctx,
321 void *private_data,
322 uint32_t msg_type,
323 struct server_id server_id,
324 DATA_BLOB *data);
325 void winbind_msg_online(struct messaging_context *msg_ctx,
326 void *private_data,
327 uint32_t msg_type,
328 struct server_id server_id,
329 DATA_BLOB *data);
330 void winbind_msg_onlinestatus(struct messaging_context *msg_ctx,
331 void *private_data,
332 uint32_t msg_type,
333 struct server_id server_id,
334 DATA_BLOB *data);
335 void winbind_msg_dump_event_list(struct messaging_context *msg_ctx,
336 void *private_data,
337 uint32_t msg_type,
338 struct server_id server_id,
339 DATA_BLOB *data);
340 void winbind_msg_dump_domain_list(struct messaging_context *msg_ctx,
341 void *private_data,
342 uint32_t msg_type,
343 struct server_id server_id,
344 DATA_BLOB *data);
345 void winbind_msg_ip_dropped(struct messaging_context *msg_ctx,
346 void *private_data,
347 uint32_t msg_type,
348 struct server_id server_id,
349 DATA_BLOB *data);
350 void winbind_msg_disconnect_dc(struct messaging_context *msg_ctx,
351 void *private_data,
352 uint32_t msg_type,
353 struct server_id server_id,
354 DATA_BLOB *data);
355 void winbind_msg_ip_dropped_parent(struct messaging_context *msg_ctx,
356 void *private_data,
357 uint32_t msg_type,
358 struct server_id server_id,
359 DATA_BLOB *data);
360 void winbindd_msg_reload_services_parent(struct messaging_context *msg,
361 void *private_data,
362 uint32_t msg_type,
363 struct server_id server_id,
364 DATA_BLOB *data);
365 NTSTATUS winbindd_reinit_after_fork(const struct winbindd_child *myself,
366 const char *logfilename);
367 struct winbindd_domain *wb_child_domain(void);
368 bool add_trusted_domains_dc(void);
370 /* The following definitions come from winbindd/winbindd_group.c */
371 bool fill_grent(TALLOC_CTX *mem_ctx, struct winbindd_gr *gr,
372 const char *dom_name, const char *gr_name, gid_t unix_gid);
374 struct db_context;
375 NTSTATUS winbindd_print_groupmembers(struct db_context *members,
376 TALLOC_CTX *mem_ctx,
377 int *num_members, char **result);
380 /* The following definitions come from winbindd/winbindd_idmap.c */
382 struct tevent_req *wb_parent_idmap_setup_send(TALLOC_CTX *mem_ctx,
383 struct tevent_context *ev);
384 NTSTATUS wb_parent_idmap_setup_recv(struct tevent_req *req,
385 const struct wb_parent_idmap_config **_cfg);
387 NTSTATUS init_idmap_child(TALLOC_CTX *mem_ctx);
388 struct winbindd_child *idmap_child(void);
389 bool is_idmap_child(const struct winbindd_child *child);
390 pid_t idmap_child_pid(void);
391 struct dcerpc_binding_handle *idmap_child_handle(void);
392 struct idmap_domain *idmap_find_domain_with_sid(const char *domname,
393 const struct dom_sid *sid);
394 const char *idmap_config_const_string(const char *domname, const char *option,
395 const char *def);
396 bool idmap_config_bool(const char *domname, const char *option, bool def);
397 int idmap_config_int(const char *domname, const char *option, int def);
398 const char **idmap_config_string_list(const char *domname,
399 const char *option,
400 const char **def);
401 bool domain_has_idmap_config(const char *domname);
402 bool lp_scan_idmap_domains(bool (*fn)(const char *domname,
403 void *private_data),
404 void *private_data);
406 /* The following definitions come from winbindd/winbindd_locator.c */
408 NTSTATUS init_locator_child(TALLOC_CTX *mem_ctx);
409 struct winbindd_child *locator_child(void);
410 struct dcerpc_binding_handle *locator_child_handle(void);
412 /* The following definitions come from winbindd/winbindd_misc.c */
414 bool winbindd_list_trusted_domains(struct winbindd_cli_state *state);
415 bool winbindd_dc_info(struct winbindd_cli_state *state);
416 bool winbindd_ping(struct winbindd_cli_state *state);
417 bool winbindd_info(struct winbindd_cli_state *state);
418 bool winbindd_interface_version(struct winbindd_cli_state *state);
419 bool winbindd_domain_name(struct winbindd_cli_state *state);
420 bool winbindd_netbios_name(struct winbindd_cli_state *state);
421 bool winbindd_priv_pipe_dir(struct winbindd_cli_state *state);
423 /* The following definitions come from winbindd/winbindd_ndr.c */
424 struct ndr_print;
425 void ndr_print_winbindd_child(struct ndr_print *ndr,
426 const char *name,
427 const struct winbindd_child *r);
428 void ndr_print_winbindd_cm_conn(struct ndr_print *ndr,
429 const char *name,
430 const struct winbindd_cm_conn *r);
431 void ndr_print_winbindd_methods(struct ndr_print *ndr,
432 const char *name,
433 const struct winbindd_methods *r);
434 void ndr_print_winbindd_domain(struct ndr_print *ndr,
435 const char *name,
436 const struct winbindd_domain *r);
438 /* The following definitions come from winbindd/winbindd_pam.c */
440 bool check_request_flags(uint32_t flags);
441 NTSTATUS append_auth_data(TALLOC_CTX *mem_ctx,
442 struct winbindd_response *resp,
443 uint32_t request_flags,
444 uint16_t validation_level,
445 union netr_Validation *validation,
446 const char *name_domain,
447 const char *name_user);
448 NTSTATUS extra_data_to_sid_array(const char *group_sid,
449 TALLOC_CTX *mem_ctx,
450 struct wbint_SidArray **_sid_array);
451 uid_t get_uid_from_request(struct winbindd_request *request);
452 struct winbindd_domain *find_auth_domain(uint8_t flags,
453 const char *domain_name);
454 struct pipes_struct;
455 struct wbint_PamAuth;
456 NTSTATUS _wbint_PamAuth(struct pipes_struct *p,
457 struct wbint_PamAuth *r);
458 NTSTATUS _wbint_PamAuthCrap(struct pipes_struct *p,
459 struct wbint_PamAuthCrap *r);
460 NTSTATUS _wbint_PamAuthChangePassword(struct pipes_struct *p,
461 struct wbint_PamAuthChangePassword *r);
462 NTSTATUS _wbint_PamLogOff(struct pipes_struct *p,
463 struct wbint_PamLogOff *r);
464 NTSTATUS _wbint_PamAuthCrapChangePassword(struct pipes_struct *p,
465 struct wbint_PamAuthCrapChangePassword *r);
466 NTSTATUS winbindd_pam_auth_pac_verify(struct winbindd_cli_state *state,
467 TALLOC_CTX *mem_ctx,
468 bool *p_is_trusted,
469 uint16_t *p_validation_level,
470 union netr_Validation **p_validation);
472 NTSTATUS winbind_dual_SamLogon(struct winbindd_domain *domain,
473 TALLOC_CTX *mem_ctx,
474 bool interactive,
475 uint32_t logon_parameters,
476 const char *name_user,
477 const char *name_domain,
478 const char *workstation,
479 const uint64_t logon_id,
480 const char *client_name,
481 const int pid,
482 DATA_BLOB chal,
483 DATA_BLOB lm_response,
484 DATA_BLOB nt_response,
485 const struct tsocket_address *remote,
486 const struct tsocket_address *local,
487 uint8_t *authoritative,
488 bool skip_sam,
489 uint32_t *flags,
490 uint16_t *_validation_level,
491 union netr_Validation **_validation);
493 /* The following definitions come from winbindd/winbindd_util.c */
495 struct winbindd_domain *domain_list(void);
496 struct winbindd_domain *wb_next_domain(struct winbindd_domain *domain);
497 bool set_routing_domain(struct winbindd_domain *domain,
498 struct winbindd_domain *routing_domain);
499 bool add_trusted_domain_from_auth(uint16_t validation_level,
500 struct info3_text *info3,
501 struct info6_text *info6);
502 bool domain_is_forest_root(const struct winbindd_domain *domain);
503 void rescan_trusted_domains(struct tevent_context *ev, struct tevent_timer *te,
504 struct timeval now, void *private_data);
505 void winbindd_ping_offline_domains(struct tevent_context *ev,
506 struct tevent_timer *te,
507 struct timeval now,
508 void *private_data);
509 bool init_domain_list(void);
510 struct winbindd_domain *find_domain_from_name_noinit(const char *domain_name);
511 struct winbindd_domain *find_trust_from_name_noinit(const char *domain_name);
512 struct winbindd_domain *find_domain_from_name(const char *domain_name);
513 struct winbindd_domain *find_domain_from_sid_noinit(const struct dom_sid *sid);
514 struct winbindd_domain *find_trust_from_sid_noinit(const struct dom_sid *sid);
515 struct winbindd_domain *find_domain_from_sid(const struct dom_sid *sid);
516 struct winbindd_domain *find_our_domain(void);
517 struct winbindd_domain *find_default_route_domain(void);
518 struct winbindd_domain *find_lookup_domain_from_sid(const struct dom_sid *sid);
519 struct winbindd_domain *find_lookup_domain_from_name(const char *domain_name);
521 * Parse a DOMAIN\user or UPN string into a domain, namespace and a user
523 * @param[in] ctx talloc context
524 * @param[in] domuser a DOMAIN\user or UPN string
525 * @param[out] namespace
526 * @param[out] domain
527 * @param[out] user
528 * @return bool indicating success or failure
530 bool parse_domain_user(TALLOC_CTX *ctx,
531 const char *domuser,
532 char **namespace,
533 char **domain,
534 char **user);
536 * Ensure an incoming username from NSS is fully qualified. Replace the
537 * incoming username with DOMAIN <separator> user. Additionally returns
538 * the same values as parse_domain_user() as out params.
539 * Used to ensure all names are fully qualified within winbindd.
540 * Used by the NSS protocols of auth, chauthtok, logoff and ccache_ntlm_auth.
541 * The protocol definitions of auth_crap, chng_pswd_auth_crap
542 * really should be changed to use this instead of doing things
543 * by hand. JRA.
545 * @param[in] mem_ctx talloc context
546 * @param[in,out] username_inout populated with fully qualified name
547 with format 'DOMAIN <separator> user' where DOMAIN and
548 user are determined by the output of parse_domain_user()
549 * @param[out] namespace populated with namespace returned from
550 parse_domain_user()
551 * @param[out] domain populated with domain returned from
552 parse_domain_user()
553 * @param[out] populated with user returned from
554 parse_domain_user()
555 * @return bool indicating success or failure
557 bool canonicalize_username(TALLOC_CTX *mem_ctx,
558 char **username_inout,
559 char **namespace,
560 char **domain,
561 char **user);
562 char *fill_domain_username_talloc(TALLOC_CTX *ctx,
563 const char *domain,
564 const char *user,
565 bool can_assume);
566 struct winbindd_cli_state *winbindd_client_list(void);
567 struct winbindd_cli_state *winbindd_client_list_tail(void);
568 struct winbindd_cli_state *
569 winbindd_client_list_prev(struct winbindd_cli_state *cli);
570 void winbindd_add_client(struct winbindd_cli_state *cli);
571 void winbindd_remove_client(struct winbindd_cli_state *cli);
572 void winbindd_promote_client(struct winbindd_cli_state *cli);
573 int winbindd_num_clients(void);
574 NTSTATUS lookup_usergroups_cached(TALLOC_CTX *mem_ctx,
575 const struct dom_sid *user_sid,
576 uint32_t *p_num_groups, struct dom_sid **user_sids);
578 NTSTATUS normalize_name_map(TALLOC_CTX *mem_ctx,
579 const char *domain_name,
580 const char *name,
581 char **normalized);
582 NTSTATUS normalize_name_unmap(TALLOC_CTX *mem_ctx,
583 const char *name,
584 char **normalized);
586 NTSTATUS resolve_username_to_alias(TALLOC_CTX *mem_ctx,
587 struct winbindd_domain *domain,
588 const char *name, char **alias);
589 NTSTATUS resolve_alias_to_username(TALLOC_CTX *mem_ctx,
590 struct winbindd_domain *domain,
591 const char *alias, char **name);
593 bool winbindd_can_contact_domain(struct winbindd_domain *domain);
594 void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain);
595 void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain);
596 void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain);
597 void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain);
598 void set_auth_errors(struct winbindd_response *resp, NTSTATUS result);
599 bool is_domain_offline(const struct winbindd_domain *domain);
600 bool is_domain_online(const struct winbindd_domain *domain);
601 bool parse_sidlist(TALLOC_CTX *mem_ctx, const char *sidstr,
602 struct dom_sid **sids, uint32_t *num_sids);
603 bool parse_xidlist(TALLOC_CTX *mem_ctx, const char *xidstr,
604 struct unixid **pxids, uint32_t *pnum_xids);
606 /* The following definitions come from winbindd/winbindd_wins.c */
608 void winbindd_wins_byname(struct winbindd_cli_state *state);
610 struct dcerpc_binding_handle *wbint_binding_handle(TALLOC_CTX *mem_ctx,
611 struct winbindd_domain *domain,
612 struct winbindd_child *child);
613 enum winbindd_result winbindd_dual_ndrcmd(struct winbindd_domain *domain,
614 struct winbindd_cli_state *state);
616 struct tevent_req *wb_lookupsid_send(TALLOC_CTX *mem_ctx,
617 struct tevent_context *ev,
618 const struct dom_sid *sid);
619 NTSTATUS wb_lookupsid_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
620 enum lsa_SidType *type, const char **domain,
621 const char **name);
623 struct tevent_req *winbindd_lookupsid_send(TALLOC_CTX *mem_ctx,
624 struct tevent_context *ev,
625 struct winbindd_cli_state *cli,
626 struct winbindd_request *request);
627 NTSTATUS winbindd_lookupsid_recv(struct tevent_req *req,
628 struct winbindd_response *response);
630 struct tevent_req *winbindd_lookupsids_send(TALLOC_CTX *mem_ctx,
631 struct tevent_context *ev,
632 struct winbindd_cli_state *cli,
633 struct winbindd_request *request);
634 NTSTATUS winbindd_lookupsids_recv(struct tevent_req *req,
635 struct winbindd_response *response);
637 struct tevent_req *wb_lookupname_send(TALLOC_CTX *mem_ctx,
638 struct tevent_context *ev,
639 const char *namespace,
640 const char *dom_name,
641 const char *name,
642 uint32_t flags);
643 NTSTATUS wb_lookupname_recv(struct tevent_req *req, struct dom_sid *sid,
644 enum lsa_SidType *type);
646 struct tevent_req *winbindd_lookupname_send(TALLOC_CTX *mem_ctx,
647 struct tevent_context *ev,
648 struct winbindd_cli_state *cli,
649 struct winbindd_request *request);
650 NTSTATUS winbindd_lookupname_recv(struct tevent_req *req,
651 struct winbindd_response *response);
653 struct tevent_req *winbindd_allocate_uid_send(TALLOC_CTX *mem_ctx,
654 struct tevent_context *ev,
655 struct winbindd_cli_state *cli,
656 struct winbindd_request *request);
657 NTSTATUS winbindd_allocate_uid_recv(struct tevent_req *req,
658 struct winbindd_response *response);
660 struct tevent_req *winbindd_allocate_gid_send(TALLOC_CTX *mem_ctx,
661 struct tevent_context *ev,
662 struct winbindd_cli_state *cli,
663 struct winbindd_request *request);
664 NTSTATUS winbindd_allocate_gid_recv(struct tevent_req *req,
665 struct winbindd_response *response);
667 struct tevent_req *wb_queryuser_send(TALLOC_CTX *mem_ctx,
668 struct tevent_context *ev,
669 const struct dom_sid *user_sid);
670 NTSTATUS wb_queryuser_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
671 struct wbint_userinfo **pinfo);
673 struct tevent_req *wb_getpwsid_send(TALLOC_CTX *mem_ctx,
674 struct tevent_context *ev,
675 const struct dom_sid *user_sid,
676 struct winbindd_pw *pw);
677 NTSTATUS wb_getpwsid_recv(struct tevent_req *req);
679 struct tevent_req *winbindd_getpwsid_send(TALLOC_CTX *mem_ctx,
680 struct tevent_context *ev,
681 struct winbindd_cli_state *cli,
682 struct winbindd_request *request);
683 NTSTATUS winbindd_getpwsid_recv(struct tevent_req *req,
684 struct winbindd_response *response);
686 struct tevent_req *winbindd_getpwnam_send(TALLOC_CTX *mem_ctx,
687 struct tevent_context *ev,
688 struct winbindd_cli_state *cli,
689 struct winbindd_request *request);
690 NTSTATUS winbindd_getpwnam_recv(struct tevent_req *req,
691 struct winbindd_response *response);
693 struct tevent_req *winbindd_getpwuid_send(TALLOC_CTX *mem_ctx,
694 struct tevent_context *ev,
695 struct winbindd_cli_state *cli,
696 struct winbindd_request *request);
697 NTSTATUS winbindd_getpwuid_recv(struct tevent_req *req,
698 struct winbindd_response *response);
699 struct tevent_req *wb_lookupuseraliases_send(TALLOC_CTX *mem_ctx,
700 struct tevent_context *ev,
701 struct winbindd_domain *domain,
702 uint32_t num_sids,
703 const struct dom_sid *sids);
704 NTSTATUS wb_lookupuseraliases_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
705 uint32_t *num_aliases, uint32_t **aliases);
706 struct tevent_req *winbindd_getsidaliases_send(TALLOC_CTX *mem_ctx,
707 struct tevent_context *ev,
708 struct winbindd_cli_state *cli,
709 struct winbindd_request *request);
710 NTSTATUS winbindd_getsidaliases_recv(struct tevent_req *req,
711 struct winbindd_response *response);
712 struct tevent_req *wb_lookupusergroups_send(TALLOC_CTX *mem_ctx,
713 struct tevent_context *ev,
714 const struct dom_sid *sid);
715 NTSTATUS wb_lookupusergroups_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
716 uint32_t *num_sids, struct dom_sid **sids);
718 struct tevent_req *winbindd_getuserdomgroups_send(TALLOC_CTX *mem_ctx,
719 struct tevent_context *ev,
720 struct winbindd_cli_state *cli,
721 struct winbindd_request *request);
722 NTSTATUS winbindd_getuserdomgroups_recv(struct tevent_req *req,
723 struct winbindd_response *response);
724 struct tevent_req *wb_gettoken_send(TALLOC_CTX *mem_ctx,
725 struct tevent_context *ev,
726 const struct dom_sid *sid,
727 bool expand_local_aliases);
728 NTSTATUS wb_gettoken_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
729 uint32_t *num_sids, struct dom_sid **sids);
730 struct tevent_req *winbindd_getgroups_send(TALLOC_CTX *mem_ctx,
731 struct tevent_context *ev,
732 struct winbindd_cli_state *cli,
733 struct winbindd_request *request);
734 NTSTATUS winbindd_getgroups_recv(struct tevent_req *req,
735 struct winbindd_response *response);
737 struct tevent_req *wb_seqnum_send(TALLOC_CTX *mem_ctx,
738 struct tevent_context *ev,
739 struct winbindd_domain *domain);
740 NTSTATUS wb_seqnum_recv(struct tevent_req *req, uint32_t *seqnum);
742 struct tevent_req *wb_seqnums_send(TALLOC_CTX *mem_ctx,
743 struct tevent_context *ev);
744 NTSTATUS wb_seqnums_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
745 int *num_domains, struct winbindd_domain ***domains,
746 NTSTATUS **statuses, uint32_t **seqnums);
748 struct tevent_req *winbindd_show_sequence_send(TALLOC_CTX *mem_ctx,
749 struct tevent_context *ev,
750 struct winbindd_cli_state *cli,
751 struct winbindd_request *request);
752 NTSTATUS winbindd_show_sequence_recv(struct tevent_req *req,
753 struct winbindd_response *response);
755 struct tevent_req *wb_group_members_send(TALLOC_CTX *mem_ctx,
756 struct tevent_context *ev,
757 const struct dom_sid *sid,
758 uint32_t num_sids,
759 enum lsa_SidType *type,
760 int max_depth);
761 NTSTATUS wb_group_members_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
762 struct db_context **members);
764 struct tevent_req *wb_alias_members_send(TALLOC_CTX *mem_ctx,
765 struct tevent_context *ev,
766 const struct dom_sid *sid,
767 enum lsa_SidType type,
768 int max_nesting);
769 NTSTATUS wb_alias_members_recv(struct tevent_req *req,
770 TALLOC_CTX *mem_ctx,
771 uint32_t *num_sids,
772 struct dom_sid **sids);
774 NTSTATUS add_member_to_db(struct db_context *db, struct dom_sid *sid,
775 const char *name);
777 struct tevent_req *wb_getgrsid_send(TALLOC_CTX *mem_ctx,
778 struct tevent_context *ev,
779 const struct dom_sid *group_sid,
780 int max_nesting);
781 NTSTATUS wb_getgrsid_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
782 const char **domname, const char **name, gid_t *gid,
783 struct db_context **members);
785 struct tevent_req *winbindd_getgrgid_send(TALLOC_CTX *mem_ctx,
786 struct tevent_context *ev,
787 struct winbindd_cli_state *cli,
788 struct winbindd_request *request);
789 NTSTATUS winbindd_getgrgid_recv(struct tevent_req *req,
790 struct winbindd_response *response);
792 struct tevent_req *winbindd_getgrnam_send(TALLOC_CTX *mem_ctx,
793 struct tevent_context *ev,
794 struct winbindd_cli_state *cli,
795 struct winbindd_request *request);
796 NTSTATUS winbindd_getgrnam_recv(struct tevent_req *req,
797 struct winbindd_response *response);
799 struct tevent_req *winbindd_getusersids_send(TALLOC_CTX *mem_ctx,
800 struct tevent_context *ev,
801 struct winbindd_cli_state *cli,
802 struct winbindd_request *request);
803 NTSTATUS winbindd_getusersids_recv(struct tevent_req *req,
804 struct winbindd_response *response);
806 struct tevent_req *winbindd_lookuprids_send(TALLOC_CTX *mem_ctx,
807 struct tevent_context *ev,
808 struct winbindd_cli_state *cli,
809 struct winbindd_request *request);
810 NTSTATUS winbindd_lookuprids_recv(struct tevent_req *req,
811 struct winbindd_response *response);
813 struct tevent_req *wb_query_user_list_send(TALLOC_CTX *mem_ctx,
814 struct tevent_context *ev,
815 struct winbindd_domain *domain);
816 NTSTATUS wb_query_user_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
817 char **users);
819 struct tevent_req *wb_query_group_list_send(TALLOC_CTX *mem_ctx,
820 struct tevent_context *ev,
821 struct winbindd_domain *domain);
822 NTSTATUS wb_query_group_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
823 uint32_t *num_users,
824 struct wbint_Principal **groups);
826 struct tevent_req *wb_next_pwent_send(TALLOC_CTX *mem_ctx,
827 struct tevent_context *ev,
828 struct getpwent_state *gstate,
829 struct winbindd_pw *pw);
830 NTSTATUS wb_next_pwent_recv(struct tevent_req *req);
832 struct tevent_req *winbindd_setpwent_send(TALLOC_CTX *mem_ctx,
833 struct tevent_context *ev,
834 struct winbindd_cli_state *cli,
835 struct winbindd_request *request);
836 NTSTATUS winbindd_setpwent_recv(struct tevent_req *req,
837 struct winbindd_response *presp);
839 struct tevent_req *winbindd_getpwent_send(TALLOC_CTX *mem_ctx,
840 struct tevent_context *ev,
841 struct winbindd_cli_state *cli,
842 struct winbindd_request *request);
843 NTSTATUS winbindd_getpwent_recv(struct tevent_req *req,
844 struct winbindd_response *response);
846 struct tevent_req *winbindd_endpwent_send(TALLOC_CTX *mem_ctx,
847 struct tevent_context *ev,
848 struct winbindd_cli_state *cli,
849 struct winbindd_request *request);
850 NTSTATUS winbindd_endpwent_recv(struct tevent_req *req,
851 struct winbindd_response *response);
853 struct tevent_req *winbindd_dsgetdcname_send(TALLOC_CTX *mem_ctx,
854 struct tevent_context *ev,
855 struct winbindd_cli_state *cli,
856 struct winbindd_request *request);
857 NTSTATUS winbindd_dsgetdcname_recv(struct tevent_req *req,
858 struct winbindd_response *response);
860 struct tevent_req *wb_dsgetdcname_send(TALLOC_CTX *mem_ctx,
861 struct tevent_context *ev,
862 const char *domain_name,
863 const struct GUID *domain_guid,
864 const char *site_name,
865 uint32_t flags);
866 NTSTATUS wb_dsgetdcname_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
867 struct netr_DsRGetDCNameInfo **pdcinfo);
868 NTSTATUS wb_dsgetdcname_gencache_set(const char *domname,
869 struct netr_DsRGetDCNameInfo *dcinfo);
870 NTSTATUS wb_dsgetdcname_gencache_get(TALLOC_CTX *mem_ctx,
871 const char *domname,
872 struct netr_DsRGetDCNameInfo **dcinfo);
874 struct tevent_req *winbindd_getdcname_send(TALLOC_CTX *mem_ctx,
875 struct tevent_context *ev,
876 struct winbindd_cli_state *cli,
877 struct winbindd_request *request);
878 NTSTATUS winbindd_getdcname_recv(struct tevent_req *req,
879 struct winbindd_response *response);
881 struct tevent_req *wb_next_grent_send(TALLOC_CTX *mem_ctx,
882 struct tevent_context *ev,
883 int max_nesting,
884 struct getgrent_state *gstate,
885 struct winbindd_gr *gr);
886 NTSTATUS wb_next_grent_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
887 struct db_context **members);
889 struct tevent_req *winbindd_setgrent_send(TALLOC_CTX *mem_ctx,
890 struct tevent_context *ev,
891 struct winbindd_cli_state *cli,
892 struct winbindd_request *request);
893 NTSTATUS winbindd_setgrent_recv(struct tevent_req *req,
894 struct winbindd_response *response);
895 struct tevent_req *winbindd_getgrent_send(TALLOC_CTX *mem_ctx,
896 struct tevent_context *ev,
897 struct winbindd_cli_state *cli,
898 struct winbindd_request *request);
899 NTSTATUS winbindd_getgrent_recv(struct tevent_req *req,
900 struct winbindd_response *response);
901 struct tevent_req *winbindd_endgrent_send(TALLOC_CTX *mem_ctx,
902 struct tevent_context *ev,
903 struct winbindd_cli_state *cli,
904 struct winbindd_request *request);
905 NTSTATUS winbindd_endgrent_recv(struct tevent_req *req,
906 struct winbindd_response *response);
908 struct tevent_req *winbindd_list_users_send(TALLOC_CTX *mem_ctx,
909 struct tevent_context *ev,
910 struct winbindd_cli_state *cli,
911 struct winbindd_request *request);
912 NTSTATUS winbindd_list_users_recv(struct tevent_req *req,
913 struct winbindd_response *response);
915 struct tevent_req *winbindd_list_groups_send(TALLOC_CTX *mem_ctx,
916 struct tevent_context *ev,
917 struct winbindd_cli_state *cli,
918 struct winbindd_request *request);
919 NTSTATUS winbindd_list_groups_recv(struct tevent_req *req,
920 struct winbindd_response *response);
922 struct tevent_req *winbindd_check_machine_acct_send(TALLOC_CTX *mem_ctx,
923 struct tevent_context *ev,
924 struct winbindd_cli_state *cli,
925 struct winbindd_request *request);
926 NTSTATUS winbindd_check_machine_acct_recv(struct tevent_req *req,
927 struct winbindd_response *presp);
929 struct tevent_req *winbindd_ping_dc_send(TALLOC_CTX *mem_ctx,
930 struct tevent_context *ev,
931 struct winbindd_cli_state *cli,
932 struct winbindd_request *request);
933 NTSTATUS winbindd_ping_dc_recv(struct tevent_req *req,
934 struct winbindd_response *presp);
936 struct tevent_req *winbindd_change_machine_acct_send(TALLOC_CTX *mem_ctx,
937 struct tevent_context *ev,
938 struct winbindd_cli_state *cli,
939 struct winbindd_request *request);
940 NTSTATUS winbindd_change_machine_acct_recv(struct tevent_req *req,
941 struct winbindd_response *presp);
943 struct tevent_req *winbindd_pam_auth_send(TALLOC_CTX *mem_ctx,
944 struct tevent_context *ev,
945 struct winbindd_cli_state *cli,
946 struct winbindd_request *request);
947 NTSTATUS winbindd_pam_auth_recv(struct tevent_req *req,
948 struct winbindd_response *response);
950 struct tevent_req *winbindd_pam_auth_crap_send(
951 TALLOC_CTX *mem_ctx,
952 struct tevent_context *ev,
953 struct winbindd_cli_state *cli,
954 struct winbindd_request *request);
955 NTSTATUS winbindd_pam_auth_crap_recv(struct tevent_req *req,
956 struct winbindd_response *response);
958 struct tevent_req *winbindd_pam_chauthtok_send(
959 TALLOC_CTX *mem_ctx,
960 struct tevent_context *ev,
961 struct winbindd_cli_state *cli,
962 struct winbindd_request *request);
963 NTSTATUS winbindd_pam_chauthtok_recv(struct tevent_req *req,
964 struct winbindd_response *response);
966 struct tevent_req *winbindd_pam_logoff_send(TALLOC_CTX *mem_ctx,
967 struct tevent_context *ev,
968 struct winbindd_cli_state *cli,
969 struct winbindd_request *request);
970 NTSTATUS winbindd_pam_logoff_recv(struct tevent_req *req,
971 struct winbindd_response *response);
973 struct tevent_req *winbindd_pam_chng_pswd_auth_crap_send(
974 TALLOC_CTX *mem_ctx,
975 struct tevent_context *ev,
976 struct winbindd_cli_state *cli,
977 struct winbindd_request *request);
978 NTSTATUS winbindd_pam_chng_pswd_auth_crap_recv(
979 struct tevent_req *req,
980 struct winbindd_response *response);
982 struct tevent_req *wb_lookupsids_send(TALLOC_CTX *mem_ctx,
983 struct tevent_context *ev,
984 struct dom_sid *sids,
985 uint32_t num_sids);
986 NTSTATUS wb_lookupsids_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
987 struct lsa_RefDomainList **domains,
988 struct lsa_TransNameArray **names);
990 struct tevent_req *wb_sids2xids_send(TALLOC_CTX *mem_ctx,
991 struct tevent_context *ev,
992 const struct dom_sid *sids,
993 const uint32_t num_sids);
994 NTSTATUS wb_sids2xids_recv(struct tevent_req *req,
995 struct unixid xids[], uint32_t num_xids);
996 struct tevent_req *winbindd_sids_to_xids_send(TALLOC_CTX *mem_ctx,
997 struct tevent_context *ev,
998 struct winbindd_cli_state *cli,
999 struct winbindd_request *request);
1000 NTSTATUS winbindd_sids_to_xids_recv(struct tevent_req *req,
1001 struct winbindd_response *response);
1002 struct tevent_req *wb_xids2sids_send(TALLOC_CTX *mem_ctx,
1003 struct tevent_context *ev,
1004 const struct unixid *xids,
1005 uint32_t num_xids);
1006 NTSTATUS wb_xids2sids_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
1007 struct dom_sid **sids);
1008 struct tevent_req *winbindd_xids_to_sids_send(TALLOC_CTX *mem_ctx,
1009 struct tevent_context *ev,
1010 struct winbindd_cli_state *cli,
1011 struct winbindd_request *request);
1012 NTSTATUS winbindd_xids_to_sids_recv(struct tevent_req *req,
1013 struct winbindd_response *response);
1014 struct tevent_req *winbindd_wins_byip_send(TALLOC_CTX *mem_ctx,
1015 struct tevent_context *ev,
1016 struct winbindd_cli_state *cli,
1017 struct winbindd_request *request);
1018 NTSTATUS winbindd_wins_byip_recv(struct tevent_req *req,
1019 struct winbindd_response *presp);
1020 struct tevent_req *winbindd_wins_byname_send(TALLOC_CTX *mem_ctx,
1021 struct tevent_context *ev,
1022 struct winbindd_cli_state *cli,
1023 struct winbindd_request *request);
1024 NTSTATUS winbindd_wins_byname_recv(struct tevent_req *req,
1025 struct winbindd_response *presp);
1026 struct tevent_req *winbindd_domain_info_send(
1027 TALLOC_CTX *mem_ctx,
1028 struct tevent_context *ev,
1029 struct winbindd_cli_state *cli,
1030 struct winbindd_request *request);
1031 NTSTATUS winbindd_domain_info_recv(struct tevent_req *req,
1032 struct winbindd_response *response);
1034 /* The following definitions come from winbindd/winbindd_samr.c */
1036 NTSTATUS open_internal_samr_conn(TALLOC_CTX *mem_ctx,
1037 struct winbindd_domain *domain,
1038 struct rpc_pipe_client **samr_pipe,
1039 struct policy_handle *samr_domain_hnd);
1040 NTSTATUS open_internal_lsa_conn(TALLOC_CTX *mem_ctx,
1041 struct rpc_pipe_client **lsa_pipe,
1042 struct policy_handle *lsa_hnd);
1044 /* The following definitions come from winbindd/winbindd_irpc.c */
1045 NTSTATUS wb_irpc_register(void);
1047 /* The following definitions come from winbindd/winbindd_reconnect.c */
1048 bool reconnect_need_retry(NTSTATUS status, struct winbindd_domain *domain);
1050 /* The following definitions come from winbindd/winbindd_gpupdate.c */
1051 void gpupdate_init(void);
1052 void gpupdate_user_init(const char *user);
1054 /* The following comes from winbindd/winbindd_dual_srv.c */
1055 bool reset_cm_connection_on_error(struct winbindd_domain *domain,
1056 struct dcerpc_binding_handle *b,
1057 NTSTATUS status);
1059 #endif /* _WINBINDD_PROTO_H_ */