s3: Remove unused winbindd_dual_getdcname
[samba.git] / source3 / winbindd / winbindd_proto.h
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
27 /* The following definitions come from auth/token_util.c  */
28
29 bool nt_token_check_sid ( const DOM_SID *sid, const NT_USER_TOKEN *token );
30 bool nt_token_check_domain_rid( NT_USER_TOKEN *token, uint32 rid );
31 NT_USER_TOKEN *get_root_nt_token( void );
32 NTSTATUS add_aliases(const DOM_SID *domain_sid,
33                      struct nt_user_token *token);
34 struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
35                                             const DOM_SID *user_sid,
36                                             bool is_guest,
37                                             int num_groupsids,
38                                             const DOM_SID *groupsids);
39 void debug_nt_user_token(int dbg_class, int dbg_lev, NT_USER_TOKEN *token);
40 void debug_unix_user_token(int dbg_class, int dbg_lev, uid_t uid, gid_t gid,
41                            int n_groups, gid_t *groups);
42
43 /* The following definitions come from smbd/connection.c  */
44
45 bool yield_connection(connection_struct *conn, const char *name);
46 int count_current_connections( const char *sharename, bool clear  );
47 int count_all_current_connections(void);
48 bool claim_connection(connection_struct *conn, const char *name,
49                       uint32 msg_flags);
50 bool register_message_flags(bool doreg, uint32 msg_flags);
51
52 /* The following definitions come from winbindd/winbindd.c  */
53
54 struct event_context *winbind_event_context(void);
55 struct messaging_context *winbind_messaging_context(void);
56 void request_error(struct winbindd_cli_state *state);
57 void request_ok(struct winbindd_cli_state *state);
58 bool winbindd_setup_sig_term_handler(bool parent);
59 bool winbindd_setup_sig_hup_handler(const char *lfile);
60 bool winbindd_use_idmap_cache(void);
61 bool winbindd_use_cache(void);
62 int main(int argc, char **argv, char **envp);
63
64 /* The following definitions come from winbindd/winbindd_ads.c  */
65
66 /* The following definitions come from winbindd/winbindd_rpc.c  */
67
68 NTSTATUS winbindd_lookup_sids(TALLOC_CTX *mem_ctx,
69                               struct winbindd_domain *domain,
70                               uint32_t num_sids,
71                               const struct dom_sid *sids,
72                               char ***domains,
73                               char ***names,
74                               enum lsa_SidType **types);
75 NTSTATUS winbindd_lookup_names(TALLOC_CTX *mem_ctx,
76                                struct winbindd_domain *domain,
77                                uint32_t num_names,
78                                const char **names,
79                                const char ***domains,
80                                struct dom_sid **sids,
81                                enum lsa_SidType **types);
82
83 /* The following definitions come from winbindd/winbindd_async.c  */
84
85 void winbindd_listent_async(TALLOC_CTX *mem_ctx,
86                                struct winbindd_domain *domain,
87                                void (*cont)(void *private_data, bool success,
88                                      fstring dom_name, char* extra_data),
89                                void *private_data, enum ent_type type);
90 enum winbindd_result winbindd_dual_list_users(struct winbindd_domain *domain,
91                                               struct winbindd_cli_state *state);
92 enum winbindd_result winbindd_dual_list_groups(struct winbindd_domain *domain,
93                                                struct winbindd_cli_state *state);
94 bool print_sidlist(TALLOC_CTX *mem_ctx, const DOM_SID *sids,
95                    size_t num_sids, char **result, ssize_t *len);
96 bool parse_sidlist(TALLOC_CTX *mem_ctx, const char *sidstr,
97                    DOM_SID **sids, size_t *num_sids);
98 enum winbindd_result winbindd_dual_getsidaliases(struct winbindd_domain *domain,
99                                                  struct winbindd_cli_state *state);
100
101 /* The following definitions come from winbindd/winbindd_cache.c  */
102
103 void winbindd_check_cache_size(time_t t);
104 struct cache_entry *centry_start(struct winbindd_domain *domain, NTSTATUS status);
105 NTSTATUS wcache_cached_creds_exist(struct winbindd_domain *domain, const DOM_SID *sid);
106 NTSTATUS wcache_get_creds(struct winbindd_domain *domain, 
107                           TALLOC_CTX *mem_ctx, 
108                           const DOM_SID *sid,
109                           const uint8 **cached_nt_pass,
110                           const uint8 **cached_salt);
111 NTSTATUS wcache_save_creds(struct winbindd_domain *domain, 
112                            TALLOC_CTX *mem_ctx, 
113                            const DOM_SID *sid, 
114                            const uint8 nt_pass[NT_HASH_LEN]);
115 void wcache_invalidate_samlogon(struct winbindd_domain *domain, 
116                                 struct netr_SamInfo3 *info3);
117 bool wcache_invalidate_cache(void);
118 bool init_wcache(void);
119 bool initialize_winbindd_cache(void);
120 void close_winbindd_cache(void);
121 NTSTATUS wcache_sid_to_name(struct winbindd_domain *domain,
122                             const struct dom_sid *sid,
123                             TALLOC_CTX *mem_ctx,
124                             char **domain_name,
125                             char **name,
126                             enum lsa_SidType *type);
127 NTSTATUS wcache_lookup_groupmem(struct winbindd_domain *domain,
128                                 TALLOC_CTX *mem_ctx,
129                                 const struct dom_sid *group_sid,
130                                 uint32_t *num_names,
131                                 struct dom_sid **sid_mem, char ***names,
132                                 uint32_t **name_types);
133 bool lookup_cached_sid(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
134                        char **domain_name, char **name,
135                        enum lsa_SidType *type);
136 bool lookup_cached_name(TALLOC_CTX *mem_ctx,
137                         const char *domain_name,
138                         const char *name,
139                         DOM_SID *sid,
140                         enum lsa_SidType *type);
141 void cache_name2sid(struct winbindd_domain *domain, 
142                     const char *domain_name, const char *name,
143                     enum lsa_SidType type, const DOM_SID *sid);
144 NTSTATUS wcache_name_to_sid(struct winbindd_domain *domain,
145                             const char *domain_name,
146                             const char *name,
147                             struct dom_sid *sid,
148                             enum lsa_SidType *type);
149 NTSTATUS wcache_query_user(struct winbindd_domain *domain,
150                            TALLOC_CTX *mem_ctx,
151                            const struct dom_sid *user_sid,
152                            struct wbint_userinfo *info);
153 NTSTATUS wcache_lookup_useraliases(struct winbindd_domain *domain,
154                                    TALLOC_CTX *mem_ctx,
155                                    uint32 num_sids, const DOM_SID *sids,
156                                    uint32 *pnum_aliases, uint32 **paliases);
157 NTSTATUS wcache_lookup_usergroups(struct winbindd_domain *domain,
158                                   TALLOC_CTX *mem_ctx,
159                                   const struct dom_sid *user_sid,
160                                   uint32_t *pnum_sids,
161                                   struct dom_sid **psids);
162
163 void wcache_flush_cache(void);
164 NTSTATUS wcache_count_cached_creds(struct winbindd_domain *domain, int *count);
165 NTSTATUS wcache_remove_oldest_cached_creds(struct winbindd_domain *domain, const DOM_SID *sid) ;
166 bool set_global_winbindd_state_offline(void);
167 void set_global_winbindd_state_online(void);
168 bool get_global_winbindd_state_offline(void);
169 int winbindd_validate_cache(void);
170 int winbindd_validate_cache_nobackup(void);
171 bool winbindd_cache_validate_and_initialize(void);
172 bool wcache_tdc_fetch_list( struct winbindd_tdc_domain **domains, size_t *num_domains );
173 bool wcache_tdc_add_domain( struct winbindd_domain *domain );
174 struct winbindd_tdc_domain * wcache_tdc_fetch_domain( TALLOC_CTX *ctx, const char *name );
175 void wcache_tdc_clear( void );
176 NTSTATUS nss_get_info_cached( struct winbindd_domain *domain, 
177                               const DOM_SID *user_sid,
178                               TALLOC_CTX *ctx,
179                               ADS_STRUCT *ads, LDAPMessage *msg,
180                               const char **homedir, const char **shell,
181                               const char **gecos, gid_t *p_gid);
182 bool wcache_store_seqnum(const char *domain_name, uint32_t seqnum,
183                          time_t last_seq_check);
184 bool wcache_fetch_ndr(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
185                       uint32_t opnum, const DATA_BLOB *req, DATA_BLOB *resp);
186 void wcache_store_ndr(struct winbindd_domain *domain, uint32_t opnum,
187                       const DATA_BLOB *req, const DATA_BLOB *resp);
188
189 /* The following definitions come from winbindd/winbindd_ccache_access.c  */
190
191 void winbindd_ccache_ntlm_auth(struct winbindd_cli_state *state);
192 enum winbindd_result winbindd_dual_ccache_ntlm_auth(struct winbindd_domain *domain,
193                                                 struct winbindd_cli_state *state);
194
195 /* The following definitions come from winbindd/winbindd_cm.c  */
196
197 void set_domain_offline(struct winbindd_domain *domain);
198 void set_domain_online_request(struct winbindd_domain *domain);
199 void winbind_add_failed_connection_entry(const struct winbindd_domain *domain,
200                                         const char *server,
201                                         NTSTATUS result);
202 void invalidate_cm_connection(struct winbindd_cm_conn *conn);
203 void close_conns_after_fork(void);
204 NTSTATUS init_dc_connection(struct winbindd_domain *domain);
205 NTSTATUS cm_connect_sam(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
206                         struct rpc_pipe_client **cli, struct policy_handle *sam_handle);
207 NTSTATUS cm_connect_lsa(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
208                         struct rpc_pipe_client **cli, struct policy_handle *lsa_policy);
209 NTSTATUS cm_connect_lsa_tcp(struct winbindd_domain *domain,
210                             TALLOC_CTX *mem_ctx,
211                             struct rpc_pipe_client **cli);
212 NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
213                              struct rpc_pipe_client **cli);
214
215 /* The following definitions come from winbindd/winbindd_cred_cache.c  */
216
217 bool ccache_entry_exists(const char *username);
218 bool ccache_entry_identical(const char *username,
219                             uid_t uid,
220                             const char *ccname);
221 void ccache_remove_all_after_fork(void);
222 void ccache_regain_all_now(void);
223 NTSTATUS add_ccache_to_list(const char *princ_name,
224                             const char *ccname,
225                             const char *service,
226                             const char *username,
227                             const char *realm,
228                             uid_t uid,
229                             time_t create_time,
230                             time_t ticket_end,
231                             time_t renew_until,
232                             bool postponed_request);
233 NTSTATUS remove_ccache(const char *username);
234 struct WINBINDD_MEMORY_CREDS *find_memory_creds_by_name(const char *username);
235 NTSTATUS winbindd_add_memory_creds(const char *username,
236                                    uid_t uid,
237                                    const char *pass);
238 NTSTATUS winbindd_delete_memory_creds(const char *username);
239 NTSTATUS winbindd_replace_memory_creds(const char *username,
240                                        const char *pass);
241
242 /* The following definitions come from winbindd/winbindd_creds.c  */
243
244 NTSTATUS winbindd_get_creds(struct winbindd_domain *domain,
245                             TALLOC_CTX *mem_ctx,
246                             const DOM_SID *sid,
247                             struct netr_SamInfo3 **info3,
248                             const uint8 *cached_nt_pass[NT_HASH_LEN],
249                             const uint8 *cred_salt[NT_HASH_LEN]);
250 NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
251                               TALLOC_CTX *mem_ctx, 
252                               const char *user, 
253                               const char *pass, 
254                               struct netr_SamInfo3 *info3,
255                               const DOM_SID *user_sid);
256 NTSTATUS winbindd_update_creds_by_info3(struct winbindd_domain *domain,
257                                         TALLOC_CTX *mem_ctx,
258                                         const char *user,
259                                         const char *pass,
260                                         struct netr_SamInfo3 *info3);
261 NTSTATUS winbindd_update_creds_by_sid(struct winbindd_domain *domain,
262                                       TALLOC_CTX *mem_ctx,
263                                       const DOM_SID *sid,
264                                       const char *pass);
265 NTSTATUS winbindd_update_creds_by_name(struct winbindd_domain *domain,
266                                        TALLOC_CTX *mem_ctx,
267                                        const char *user,
268                                        const char *pass);
269
270 /* The following definitions come from winbindd/winbindd_domain.c  */
271
272 void setup_domain_child(struct winbindd_domain *domain,
273                         struct winbindd_child *child);
274
275 /* The following definitions come from winbindd/winbindd_dual.c  */
276
277 struct tevent_req *wb_child_request_send(TALLOC_CTX *mem_ctx,
278                                          struct tevent_context *ev,
279                                          struct winbindd_child *child,
280                                          struct winbindd_request *request);
281 int wb_child_request_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
282                           struct winbindd_response **presponse, int *err);
283 struct tevent_req *wb_domain_request_send(TALLOC_CTX *mem_ctx,
284                                           struct tevent_context *ev,
285                                           struct winbindd_domain *domain,
286                                           struct winbindd_request *request);
287 int wb_domain_request_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
288                            struct winbindd_response **presponse, int *err);
289
290 void async_request(TALLOC_CTX *mem_ctx, struct winbindd_child *child,
291                    struct winbindd_request *request,
292                    struct winbindd_response *response,
293                    void (*continuation)(void *private_data, bool success),
294                    void *private_data);
295 void async_domain_request(TALLOC_CTX *mem_ctx,
296                           struct winbindd_domain *domain,
297                           struct winbindd_request *request,
298                           struct winbindd_response *response,
299                           void (*continuation)(void *private_data_data, bool success),
300                           void *private_data_data);
301 void sendto_child(struct winbindd_cli_state *state,
302                   struct winbindd_child *child);
303 void sendto_domain(struct winbindd_cli_state *state,
304                    struct winbindd_domain *domain);
305 void setup_child(struct winbindd_domain *domain, struct winbindd_child *child,
306                  const struct winbindd_child_dispatch_table *table,
307                  const char *logprefix,
308                  const char *logname);
309 void winbind_child_died(pid_t pid);
310 void winbindd_flush_negative_conn_cache(struct winbindd_domain *domain);
311 void winbind_msg_debug(struct messaging_context *msg_ctx,
312                          void *private_data,
313                          uint32_t msg_type,
314                          struct server_id server_id,
315                          DATA_BLOB *data);
316 void winbind_msg_offline(struct messaging_context *msg_ctx,
317                          void *private_data,
318                          uint32_t msg_type,
319                          struct server_id server_id,
320                          DATA_BLOB *data);
321 void winbind_msg_online(struct messaging_context *msg_ctx,
322                         void *private_data,
323                         uint32_t msg_type,
324                         struct server_id server_id,
325                         DATA_BLOB *data);
326 void winbind_msg_onlinestatus(struct messaging_context *msg_ctx,
327                               void *private_data,
328                               uint32_t msg_type,
329                               struct server_id server_id,
330                               DATA_BLOB *data);
331 void winbind_msg_dump_event_list(struct messaging_context *msg_ctx,
332                                  void *private_data,
333                                  uint32_t msg_type,
334                                  struct server_id server_id,
335                                  DATA_BLOB *data);
336 void winbind_msg_dump_domain_list(struct messaging_context *msg_ctx,
337                                   void *private_data,
338                                   uint32_t msg_type,
339                                   struct server_id server_id,
340                                   DATA_BLOB *data);
341 bool winbindd_reinit_after_fork(const char *logfilename);
342 struct winbindd_domain *wb_child_domain(void);
343
344 /* The following definitions come from winbindd/winbindd_group.c  */
345
346 void winbindd_getgrnam(struct winbindd_cli_state *state);
347 void winbindd_getgrgid(struct winbindd_cli_state *state);
348 void winbindd_setgrent(struct winbindd_cli_state *state);
349 void winbindd_endgrent(struct winbindd_cli_state *state);
350 void winbindd_getgrent(struct winbindd_cli_state *state);
351 void winbindd_list_groups(struct winbindd_cli_state *state);
352 void winbindd_getgroups(struct winbindd_cli_state *state);
353 void winbindd_getusersids(struct winbindd_cli_state *state);
354 void winbindd_getuserdomgroups(struct winbindd_cli_state *state);
355 void winbindd_getsidaliases(struct winbindd_cli_state *state);
356 enum winbindd_result winbindd_dual_getuserdomgroups(struct winbindd_domain *domain,
357                                                     struct winbindd_cli_state *state);
358 bool get_sam_group_entries(struct getent_state *ent);
359 bool fill_grent(TALLOC_CTX *mem_ctx, struct winbindd_gr *gr,
360                 const char *dom_name, const char *gr_name, gid_t unix_gid);
361 NTSTATUS winbindd_print_groupmembers(struct talloc_dict *members,
362                                      TALLOC_CTX *mem_ctx,
363                                      int *num_members, char **result);
364
365
366 /* The following definitions come from winbindd/winbindd_idmap.c  */
367
368 void init_idmap_child(void);
369 struct winbindd_child *idmap_child(void);
370 void winbindd_set_mapping_async(TALLOC_CTX *mem_ctx, const struct id_map *map,
371                              void (*cont)(void *private_data, bool success),
372                              void *private_data);
373 enum winbindd_result winbindd_dual_set_mapping(struct winbindd_domain *domain,
374                                             struct winbindd_cli_state *state);
375 void winbindd_remove_mapping_async(TALLOC_CTX *mem_ctx, const struct id_map *map,
376                              void (*cont)(void *private_data, bool success),
377                              void *private_data);
378 enum winbindd_result winbindd_dual_remove_mapping(struct winbindd_domain *domain,
379                                             struct winbindd_cli_state *state);
380 void winbindd_set_hwm_async(TALLOC_CTX *mem_ctx, const struct unixid *xid,
381                              void (*cont)(void *private_data, bool success),
382                              void *private_data);
383 enum winbindd_result winbindd_dual_set_hwm(struct winbindd_domain *domain,
384                                             struct winbindd_cli_state *state);
385 void winbindd_sids2xids_async(TALLOC_CTX *mem_ctx, void *sids, int size,
386                          void (*cont)(void *private_data, bool success, void *data, int len),
387                          void *private_data);
388 enum winbindd_result winbindd_dual_sids2xids(struct winbindd_domain *domain,
389                                            struct winbindd_cli_state *state);
390
391 /* The following definitions come from winbindd/winbindd_locator.c  */
392
393 void init_locator_child(void);
394 struct winbindd_child *locator_child(void);
395 void winbindd_dsgetdcname(struct winbindd_cli_state *state);
396
397 /* The following definitions come from winbindd/winbindd_misc.c  */
398
399 void winbindd_check_machine_acct(struct winbindd_cli_state *state);
400 enum winbindd_result winbindd_dual_check_machine_acct(struct winbindd_domain *domain,
401                                                       struct winbindd_cli_state *state);
402 void winbindd_list_ent(struct winbindd_cli_state *state, enum ent_type type);
403 void winbindd_list_trusted_domains(struct winbindd_cli_state *state);
404 enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain *domain,
405                                                         struct winbindd_cli_state *state);
406 void winbindd_show_sequence(struct winbindd_cli_state *state);
407 enum winbindd_result winbindd_dual_show_sequence(struct winbindd_domain *domain,
408                                                  struct winbindd_cli_state *state);
409 void winbindd_domain_info(struct winbindd_cli_state *state);
410 void winbindd_ping(struct winbindd_cli_state *state);
411 void winbindd_info(struct winbindd_cli_state *state);
412 void winbindd_interface_version(struct winbindd_cli_state *state);
413 void winbindd_domain_name(struct winbindd_cli_state *state);
414 void winbindd_netbios_name(struct winbindd_cli_state *state);
415 void winbindd_priv_pipe_dir(struct winbindd_cli_state *state);
416
417 /* The following definitions come from winbindd/winbindd_ndr.c  */
418
419 void ndr_print_winbindd_child(struct ndr_print *ndr,
420                               const char *name,
421                               const struct winbindd_child *r);
422 void ndr_print_winbindd_cm_conn(struct ndr_print *ndr,
423                                 const char *name,
424                                 const struct winbindd_cm_conn *r);
425 void ndr_print_winbindd_methods(struct ndr_print *ndr,
426                                 const char *name,
427                                 const struct winbindd_methods *r);
428 void ndr_print_winbindd_domain(struct ndr_print *ndr,
429                                const char *name,
430                                const struct winbindd_domain *r);
431
432 /* The following definitions come from winbindd/winbindd_pam.c  */
433
434 bool check_request_flags(uint32_t flags);
435 struct winbindd_domain *find_auth_domain(uint8_t flags,
436                                          const char *domain_name);
437 NTSTATUS check_info3_in_group(struct netr_SamInfo3 *info3,
438                               const char *group_sid);
439 NTSTATUS append_auth_data(struct winbindd_cli_state *state,
440                           struct netr_SamInfo3 *info3,
441                           const char *name_domain,
442                           const char *name_user);
443 void winbindd_pam_auth(struct winbindd_cli_state *state);
444 enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
445                                             struct winbindd_cli_state *state) ;
446 void winbindd_pam_auth_crap(struct winbindd_cli_state *state);
447 enum winbindd_result winbindd_dual_pam_auth_crap(struct winbindd_domain *domain,
448                                                  struct winbindd_cli_state *state) ;
449 void winbindd_pam_chauthtok(struct winbindd_cli_state *state);
450 enum winbindd_result winbindd_dual_pam_chauthtok(struct winbindd_domain *contact_domain,
451                                                  struct winbindd_cli_state *state);
452 void winbindd_pam_logoff(struct winbindd_cli_state *state);
453 enum winbindd_result winbindd_dual_pam_logoff(struct winbindd_domain *domain,
454                                               struct winbindd_cli_state *state) ;
455 void winbindd_pam_chng_pswd_auth_crap(struct winbindd_cli_state *state);
456 enum winbindd_result winbindd_dual_pam_chng_pswd_auth_crap(struct winbindd_domain *domainSt, struct winbindd_cli_state *state);
457
458 /* The following definitions come from winbindd/winbindd_passdb.c  */
459
460
461 /* The following definitions come from winbindd/winbindd_reconnect.c  */
462
463
464 /* The following definitions come from winbindd/winbindd_sid.c  */
465
466 void winbindd_lookupsid(struct winbindd_cli_state *state);
467 void winbindd_lookupname(struct winbindd_cli_state *state);
468 void winbindd_lookuprids(struct winbindd_cli_state *state);
469 void winbindd_sid_to_uid(struct winbindd_cli_state *state);
470 void winbindd_sid_to_gid(struct winbindd_cli_state *state);
471 void winbindd_set_mapping(struct winbindd_cli_state *state);
472 void winbindd_remove_mapping(struct winbindd_cli_state *state);
473 void winbindd_set_hwm(struct winbindd_cli_state *state);
474 void winbindd_uid_to_sid(struct winbindd_cli_state *state);
475 void winbindd_gid_to_sid(struct winbindd_cli_state *state);
476 void winbindd_allocate_uid(struct winbindd_cli_state *state);
477 enum winbindd_result winbindd_dual_allocate_uid(struct winbindd_domain *domain,
478                                                 struct winbindd_cli_state *state);
479 void winbindd_allocate_gid(struct winbindd_cli_state *state);
480 enum winbindd_result winbindd_dual_allocate_gid(struct winbindd_domain *domain,
481                                                 struct winbindd_cli_state *state);
482
483 /* The following definitions come from winbindd/winbindd_user.c  */
484
485 enum winbindd_result winbindd_dual_userinfo(struct winbindd_domain *domain,
486                                             struct winbindd_cli_state *state);
487 void winbindd_getpwnam(struct winbindd_cli_state *state);
488 void winbindd_getpwuid(struct winbindd_cli_state *state);
489 void winbindd_getpwsid(struct winbindd_cli_state *state);
490 void winbindd_setpwent(struct winbindd_cli_state *state);
491 void winbindd_endpwent(struct winbindd_cli_state *state);
492 void winbindd_getpwent(struct winbindd_cli_state *state);
493 void winbindd_list_users(struct winbindd_cli_state *state);
494
495 /* The following definitions come from winbindd/winbindd_util.c  */
496
497 struct winbindd_domain *domain_list(void);
498 void free_domain_list(void);
499 void rescan_trusted_domains(struct tevent_context *ev, struct tevent_timer *te,
500                             struct timeval now, void *private_data);
501 enum winbindd_result winbindd_dual_init_connection(struct winbindd_domain *domain,
502                                                    struct winbindd_cli_state *state);
503 bool init_domain_list(void);
504 void check_domain_trusted( const char *name, const DOM_SID *user_sid );
505 struct winbindd_domain *find_domain_from_name_noinit(const char *domain_name);
506 struct winbindd_domain *find_domain_from_name(const char *domain_name);
507 struct winbindd_domain *find_domain_from_sid_noinit(const DOM_SID *sid);
508 struct winbindd_domain *find_domain_from_sid(const DOM_SID *sid);
509 struct winbindd_domain *find_our_domain(void);
510 struct winbindd_domain *find_root_domain(void);
511 struct winbindd_domain *find_builtin_domain(void);
512 struct winbindd_domain *find_lookup_domain_from_sid(const DOM_SID *sid);
513 struct winbindd_domain *find_lookup_domain_from_name(const char *domain_name);
514 bool winbindd_lookup_sid_by_name(TALLOC_CTX *mem_ctx,
515                                  enum winbindd_cmd orig_cmd,
516                                  struct winbindd_domain *domain, 
517                                  const char *domain_name,
518                                  const char *name, DOM_SID *sid, 
519                                  enum lsa_SidType *type);
520 bool winbindd_lookup_name_by_sid(TALLOC_CTX *mem_ctx,
521                                  struct winbindd_domain *domain,
522                                  DOM_SID *sid,
523                                  char **dom_name,
524                                  char **name,
525                                  enum lsa_SidType *type);
526 void free_getent_state(struct getent_state *state);
527 bool parse_domain_user(const char *domuser, fstring domain, fstring user);
528 bool parse_domain_user_talloc(TALLOC_CTX *mem_ctx, const char *domuser,
529                               char **domain, char **user);
530 void parse_add_domuser(void *buf, char *domuser, int *len);
531 bool canonicalize_username(fstring username_inout, fstring domain, fstring user);
532 void fill_domain_username(fstring name, const char *domain, const char *user, bool can_assume);
533 char *fill_domain_username_talloc(TALLOC_CTX *ctx,
534                                   const char *domain,
535                                   const char *user,
536                                   bool can_assume);
537 const char *get_winbind_pipe_dir(void) ;
538 char *get_winbind_priv_pipe_dir(void) ;
539 int open_winbindd_socket(void);
540 int open_winbindd_priv_socket(void);
541 struct winbindd_cli_state *winbindd_client_list(void);
542 void winbindd_add_client(struct winbindd_cli_state *cli);
543 void winbindd_remove_client(struct winbindd_cli_state *cli);
544 void winbindd_kill_all_clients(void);
545 int winbindd_num_clients(void);
546 NTSTATUS lookup_usergroups_cached(struct winbindd_domain *domain,
547                                   TALLOC_CTX *mem_ctx,
548                                   const DOM_SID *user_sid,
549                                   uint32 *p_num_groups, DOM_SID **user_sids);
550
551 NTSTATUS normalize_name_map(TALLOC_CTX *mem_ctx,
552                              struct winbindd_domain *domain,
553                              const char *name,
554                              char **normalized);
555 NTSTATUS normalize_name_unmap(TALLOC_CTX *mem_ctx,
556                               char *name,
557                               char **normalized);
558
559 NTSTATUS resolve_username_to_alias(TALLOC_CTX *mem_ctx,
560                                    struct winbindd_domain *domain,
561                                    const char *name, char **alias);
562 NTSTATUS resolve_alias_to_username(TALLOC_CTX *mem_ctx,
563                                    struct winbindd_domain *domain,
564                                    const char *alias, char **name);
565
566 bool winbindd_can_contact_domain(struct winbindd_domain *domain);
567 bool winbindd_internal_child(struct winbindd_child *child);
568 void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain);
569 void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain);
570 void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain);
571 void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain);
572 void set_auth_errors(struct winbindd_response *resp, NTSTATUS result);
573
574 /* The following definitions come from winbindd/winbindd_wins.c  */
575
576 void winbindd_wins_byip(struct winbindd_cli_state *state);
577 void winbindd_wins_byname(struct winbindd_cli_state *state);
578
579 struct tevent_req *wb_ping_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
580                                 struct winbindd_cli_state *cli,
581                                 struct winbindd_request *request);
582 NTSTATUS wb_ping_recv(struct tevent_req *req,
583                       struct winbindd_response *resp);
584
585 enum winbindd_result winbindd_dual_ping(struct winbindd_domain *domain,
586                                         struct winbindd_cli_state *state);
587
588 struct rpc_pipe_client *wbint_rpccli_create(TALLOC_CTX *mem_ctx,
589                                             struct winbindd_domain *domain,
590                                             struct winbindd_child *child);
591 enum winbindd_result winbindd_dual_ndrcmd(struct winbindd_domain *domain,
592                                           struct winbindd_cli_state *state);
593
594 struct tevent_req *wb_lookupsid_send(TALLOC_CTX *mem_ctx,
595                                      struct tevent_context *ev,
596                                      const struct dom_sid *sid);
597 NTSTATUS wb_lookupsid_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
598                            enum lsa_SidType *type, const char **domain,
599                            const char **name);
600
601 struct tevent_req *winbindd_lookupsid_send(TALLOC_CTX *mem_ctx,
602                                            struct tevent_context *ev,
603                                            struct winbindd_cli_state *cli,
604                                            struct winbindd_request *request);
605 NTSTATUS winbindd_lookupsid_recv(struct tevent_req *req,
606                                  struct winbindd_response *response);
607
608 struct tevent_req *wb_lookupname_send(TALLOC_CTX *mem_ctx,
609                                       struct tevent_context *ev,
610                                       const char *dom_name, const char *name,
611                                       uint32_t flags);
612 NTSTATUS wb_lookupname_recv(struct tevent_req *req, struct dom_sid *sid,
613                             enum lsa_SidType *type);
614
615 struct tevent_req *winbindd_lookupname_send(TALLOC_CTX *mem_ctx,
616                                             struct tevent_context *ev,
617                                             struct winbindd_cli_state *cli,
618                                             struct winbindd_request *request);
619 NTSTATUS winbindd_lookupname_recv(struct tevent_req *req,
620                                   struct winbindd_response *response);
621
622 struct tevent_req *wb_sid2uid_send(TALLOC_CTX *mem_ctx,
623                                    struct tevent_context *ev,
624                                    const struct dom_sid *sid);
625 NTSTATUS wb_sid2uid_recv(struct tevent_req *req, uid_t *uid);
626
627 struct tevent_req *winbindd_sid_to_uid_send(TALLOC_CTX *mem_ctx,
628                                             struct tevent_context *ev,
629                                             struct winbindd_cli_state *cli,
630                                             struct winbindd_request *request);
631 NTSTATUS winbindd_sid_to_uid_recv(struct tevent_req *req,
632                                   struct winbindd_response *response);
633
634 struct tevent_req *wb_sid2gid_send(TALLOC_CTX *mem_ctx,
635                                    struct tevent_context *ev,
636                                    const struct dom_sid *sid);
637 NTSTATUS wb_sid2gid_recv(struct tevent_req *req, gid_t *gid);
638
639 struct tevent_req *winbindd_sid_to_gid_send(TALLOC_CTX *mem_ctx,
640                                             struct tevent_context *ev,
641                                             struct winbindd_cli_state *cli,
642                                             struct winbindd_request *request);
643 NTSTATUS winbindd_sid_to_gid_recv(struct tevent_req *req,
644                                   struct winbindd_response *response);
645
646 struct tevent_req *wb_uid2sid_send(TALLOC_CTX *mem_ctx,
647                                    struct tevent_context *ev,
648                                    uid_t uid);
649 NTSTATUS wb_uid2sid_recv(struct tevent_req *req, struct dom_sid *sid);
650
651 struct tevent_req *winbindd_uid_to_sid_send(TALLOC_CTX *mem_ctx,
652                                             struct tevent_context *ev,
653                                             struct winbindd_cli_state *cli,
654                                             struct winbindd_request *request);
655 NTSTATUS winbindd_uid_to_sid_recv(struct tevent_req *req,
656                                   struct winbindd_response *response);
657
658 struct tevent_req *wb_gid2sid_send(TALLOC_CTX *mem_ctx,
659                                    struct tevent_context *ev,
660                                    gid_t gid);
661 NTSTATUS wb_gid2sid_recv(struct tevent_req *req, struct dom_sid *sid);
662
663 struct tevent_req *winbindd_gid_to_sid_send(TALLOC_CTX *mem_ctx,
664                                             struct tevent_context *ev,
665                                             struct winbindd_cli_state *cli,
666                                             struct winbindd_request *request);
667 NTSTATUS winbindd_gid_to_sid_recv(struct tevent_req *req,
668                                   struct winbindd_response *response);
669
670 struct tevent_req *winbindd_allocate_uid_send(TALLOC_CTX *mem_ctx,
671                                               struct tevent_context *ev,
672                                               struct winbindd_cli_state *cli,
673                                               struct winbindd_request *request);
674 NTSTATUS winbindd_allocate_uid_recv(struct tevent_req *req,
675                                     struct winbindd_response *response);
676
677 struct tevent_req *winbindd_allocate_gid_send(TALLOC_CTX *mem_ctx,
678                                               struct tevent_context *ev,
679                                               struct winbindd_cli_state *cli,
680                                               struct winbindd_request *request);
681 NTSTATUS winbindd_allocate_gid_recv(struct tevent_req *req,
682                                     struct winbindd_response *response);
683
684 struct tevent_req *wb_queryuser_send(TALLOC_CTX *mem_ctx,
685                                      struct tevent_context *ev,
686                                      const struct dom_sid *user_sid);
687 NTSTATUS wb_queryuser_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
688                            struct wbint_userinfo **pinfo);
689
690 struct tevent_req *wb_getpwsid_send(TALLOC_CTX *mem_ctx,
691                                     struct tevent_context *ev,
692                                     const struct dom_sid *user_sid,
693                                     struct winbindd_pw *pw);
694 NTSTATUS wb_getpwsid_recv(struct tevent_req *req);
695
696 struct tevent_req *winbindd_getpwsid_send(TALLOC_CTX *mem_ctx,
697                                           struct tevent_context *ev,
698                                           struct winbindd_cli_state *cli,
699                                           struct winbindd_request *request);
700 NTSTATUS winbindd_getpwsid_recv(struct tevent_req *req,
701                                 struct winbindd_response *response);
702
703 struct tevent_req *winbindd_getpwnam_send(TALLOC_CTX *mem_ctx,
704                                           struct tevent_context *ev,
705                                           struct winbindd_cli_state *cli,
706                                           struct winbindd_request *request);
707 NTSTATUS winbindd_getpwnam_recv(struct tevent_req *req,
708                                 struct winbindd_response *response);
709
710 struct tevent_req *winbindd_getpwuid_send(TALLOC_CTX *mem_ctx,
711                                           struct tevent_context *ev,
712                                           struct winbindd_cli_state *cli,
713                                           struct winbindd_request *request);
714 NTSTATUS winbindd_getpwuid_recv(struct tevent_req *req,
715                                 struct winbindd_response *response);
716 struct tevent_req *wb_lookupuseraliases_send(TALLOC_CTX *mem_ctx,
717                                              struct tevent_context *ev,
718                                              struct winbindd_domain *domain,
719                                              int num_sids,
720                                              const struct dom_sid *sids);
721 NTSTATUS wb_lookupuseraliases_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
722                                    uint32_t *num_aliases, uint32_t **aliases);
723 struct tevent_req *winbindd_getsidaliases_send(TALLOC_CTX *mem_ctx,
724                                                struct tevent_context *ev,
725                                                struct winbindd_cli_state *cli,
726                                                struct winbindd_request *request);
727 NTSTATUS winbindd_getsidaliases_recv(struct tevent_req *req,
728                                      struct winbindd_response *response);
729 struct tevent_req *wb_lookupusergroups_send(TALLOC_CTX *mem_ctx,
730                                             struct tevent_context *ev,
731                                             struct winbindd_domain *domain,
732                                             const struct dom_sid *sid);
733 NTSTATUS wb_lookupusergroups_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
734                                   int *num_sids, struct dom_sid **sids);
735
736 struct tevent_req *winbindd_getuserdomgroups_send(TALLOC_CTX *mem_ctx,
737                                                   struct tevent_context *ev,
738                                                   struct winbindd_cli_state *cli,
739                                                   struct winbindd_request *request);
740 NTSTATUS winbindd_getuserdomgroups_recv(struct tevent_req *req,
741                                         struct winbindd_response *response);
742 struct tevent_req *wb_gettoken_send(TALLOC_CTX *mem_ctx,
743                                     struct tevent_context *ev,
744                                     const struct dom_sid *sid);
745 NTSTATUS wb_gettoken_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
746                           int *num_sids, struct dom_sid **sids);
747 struct tevent_req *winbindd_getgroups_send(TALLOC_CTX *mem_ctx,
748                                            struct tevent_context *ev,
749                                            struct winbindd_cli_state *cli,
750                                            struct winbindd_request *request);
751 NTSTATUS winbindd_getgroups_recv(struct tevent_req *req,
752                                  struct winbindd_response *response);
753
754 struct tevent_req *wb_seqnum_send(TALLOC_CTX *mem_ctx,
755                                   struct tevent_context *ev,
756                                   struct winbindd_domain *domain);
757 NTSTATUS wb_seqnum_recv(struct tevent_req *req, uint32_t *seqnum);
758
759 struct tevent_req *wb_seqnums_send(TALLOC_CTX *mem_ctx,
760                                    struct tevent_context *ev);
761 NTSTATUS wb_seqnums_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
762                          int *num_domains, struct winbindd_domain ***domains,
763                          NTSTATUS **stati, uint32_t **seqnums);
764
765 struct tevent_req *winbindd_show_sequence_send(TALLOC_CTX *mem_ctx,
766                                                struct tevent_context *ev,
767                                                struct winbindd_cli_state *cli,
768                                                struct winbindd_request *request);
769 NTSTATUS winbindd_show_sequence_recv(struct tevent_req *req,
770                                      struct winbindd_response *response);
771
772 struct tevent_req *wb_group_members_send(TALLOC_CTX *mem_ctx,
773                                          struct tevent_context *ev,
774                                          const struct dom_sid *sid,
775                                          enum lsa_SidType type,
776                                          int max_depth);
777 NTSTATUS wb_group_members_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
778                                struct talloc_dict **members);
779
780 struct tevent_req *wb_getgrsid_send(TALLOC_CTX *mem_ctx,
781                                     struct tevent_context *ev,
782                                     const struct dom_sid *group_sid,
783                                     int max_nesting);
784 NTSTATUS wb_getgrsid_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
785                           const char **domname, const char **name, gid_t *gid,
786                           struct talloc_dict **members);
787
788 struct tevent_req *winbindd_getgrgid_send(TALLOC_CTX *mem_ctx,
789                                           struct tevent_context *ev,
790                                           struct winbindd_cli_state *cli,
791                                           struct winbindd_request *request);
792 NTSTATUS winbindd_getgrgid_recv(struct tevent_req *req,
793                                 struct winbindd_response *response);
794
795 struct tevent_req *winbindd_getgrnam_send(TALLOC_CTX *mem_ctx,
796                                           struct tevent_context *ev,
797                                           struct winbindd_cli_state *cli,
798                                           struct winbindd_request *request);
799 NTSTATUS winbindd_getgrnam_recv(struct tevent_req *req,
800                                 struct winbindd_response *response);
801
802 struct tevent_req *winbindd_getusersids_send(TALLOC_CTX *mem_ctx,
803                                              struct tevent_context *ev,
804                                              struct winbindd_cli_state *cli,
805                                              struct winbindd_request *request);
806 NTSTATUS winbindd_getusersids_recv(struct tevent_req *req,
807                                    struct winbindd_response *response);
808
809 struct tevent_req *winbindd_lookuprids_send(TALLOC_CTX *mem_ctx,
810                                             struct tevent_context *ev,
811                                             struct winbindd_cli_state *cli,
812                                             struct winbindd_request *request);
813 NTSTATUS winbindd_lookuprids_recv(struct tevent_req *req,
814                                   struct winbindd_response *response);
815
816 struct tevent_req *wb_query_user_list_send(TALLOC_CTX *mem_ctx,
817                                            struct tevent_context *ev,
818                                            struct winbindd_domain *domain);
819 NTSTATUS wb_query_user_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
820                                  int *num_users,
821                                  struct wbint_userinfo **users);
822
823 struct tevent_req *wb_fill_pwent_send(TALLOC_CTX *mem_ctx,
824                                       struct tevent_context *ev,
825                                       struct wbint_userinfo *info,
826                                       struct winbindd_pw *pw);
827 NTSTATUS wb_fill_pwent_recv(struct tevent_req *req);
828
829 struct tevent_req *wb_next_pwent_send(TALLOC_CTX *mem_ctx,
830                                       struct tevent_context *ev,
831                                       struct getpwent_state *gstate,
832                                       struct winbindd_pw *pw);
833 NTSTATUS wb_next_pwent_recv(struct tevent_req *req);
834
835 struct tevent_req *winbindd_setpwent_send(TALLOC_CTX *mem_ctx,
836                                           struct tevent_context *ev,
837                                           struct winbindd_cli_state *cli,
838                                           struct winbindd_request *request);
839 NTSTATUS winbindd_setpwent_recv(struct tevent_req *req,
840                                 struct winbindd_response *presp);
841
842 struct tevent_req *winbindd_getpwent_send(TALLOC_CTX *mem_ctx,
843                                           struct tevent_context *ev,
844                                           struct winbindd_cli_state *cli,
845                                           struct winbindd_request *request);
846 NTSTATUS winbindd_getpwent_recv(struct tevent_req *req,
847                                 struct winbindd_response *response);
848
849 struct tevent_req *winbindd_endpwent_send(TALLOC_CTX *mem_ctx,
850                                           struct tevent_context *ev,
851                                           struct winbindd_cli_state *cli,
852                                           struct winbindd_request *request);
853 NTSTATUS winbindd_endpwent_recv(struct tevent_req *req,
854                                 struct winbindd_response *response);
855
856 struct tevent_req *winbindd_dsgetdcname_send(TALLOC_CTX *mem_ctx,
857                                              struct tevent_context *ev,
858                                              struct winbindd_cli_state *cli,
859                                              struct winbindd_request *request);
860 NTSTATUS winbindd_dsgetdcname_recv(struct tevent_req *req,
861                                    struct winbindd_response *response);
862
863 struct tevent_req *wb_dsgetdcname_send(TALLOC_CTX *mem_ctx,
864                                        struct tevent_context *ev,
865                                        const char *domain_name,
866                                        const struct GUID *domain_guid,
867                                        const char *site_name,
868                                        uint32_t flags);
869 NTSTATUS wb_dsgetdcname_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
870                              struct netr_DsRGetDCNameInfo **pdcinfo);
871
872 struct tevent_req *winbindd_getdcname_send(TALLOC_CTX *mem_ctx,
873                                            struct tevent_context *ev,
874                                            struct winbindd_cli_state *cli,
875                                            struct winbindd_request *request);
876 NTSTATUS winbindd_getdcname_recv(struct tevent_req *req,
877                                  struct winbindd_response *response);
878
879 struct tevent_req *wb_next_grent_send(TALLOC_CTX *mem_ctx,
880                                       struct tevent_context *ev,
881                                       int max_nesting,
882                                       struct getgrent_state *gstate,
883                                       struct winbindd_gr *gr);
884 NTSTATUS wb_next_grent_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
885                             struct talloc_dict **members);
886
887 struct tevent_req *winbindd_setgrent_send(TALLOC_CTX *mem_ctx,
888                                           struct tevent_context *ev,
889                                           struct winbindd_cli_state *cli,
890                                           struct winbindd_request *request);
891 NTSTATUS winbindd_setgrent_recv(struct tevent_req *req,
892                                 struct winbindd_response *response);
893 struct tevent_req *winbindd_getgrent_send(TALLOC_CTX *mem_ctx,
894                                           struct tevent_context *ev,
895                                           struct winbindd_cli_state *cli,
896                                           struct winbindd_request *request);
897 NTSTATUS winbindd_getgrent_recv(struct tevent_req *req,
898                                 struct winbindd_response *response);
899 struct tevent_req *winbindd_endgrent_send(TALLOC_CTX *mem_ctx,
900                                           struct tevent_context *ev,
901                                           struct winbindd_cli_state *cli,
902                                           struct winbindd_request *request);
903 NTSTATUS winbindd_endgrent_recv(struct tevent_req *req,
904                                 struct winbindd_response *response);
905
906 struct tevent_req *winbindd_list_users_send(TALLOC_CTX *mem_ctx,
907                                             struct tevent_context *ev,
908                                             struct winbindd_cli_state *cli,
909                                             struct winbindd_request *request);
910 NTSTATUS winbindd_list_users_recv(struct tevent_req *req,
911                                   struct winbindd_response *response);
912
913 struct tevent_req *winbindd_list_groups_send(TALLOC_CTX *mem_ctx,
914                                              struct tevent_context *ev,
915                                              struct winbindd_cli_state *cli,
916                                              struct winbindd_request *request);
917 NTSTATUS winbindd_list_groups_recv(struct tevent_req *req,
918                                    struct winbindd_response *response);
919
920 struct tevent_req *winbindd_check_machine_acct_send(TALLOC_CTX *mem_ctx,
921                                                     struct tevent_context *ev,
922                                                     struct winbindd_cli_state *cli,
923                                                     struct winbindd_request *request);
924 NTSTATUS winbindd_check_machine_acct_recv(struct tevent_req *req,
925                                           struct winbindd_response *presp);
926
927 struct tevent_req *winbindd_change_machine_acct_send(TALLOC_CTX *mem_ctx,
928                                                      struct tevent_context *ev,
929                                                      struct winbindd_cli_state *cli,
930                                                      struct winbindd_request *request);
931 NTSTATUS winbindd_change_machine_acct_recv(struct tevent_req *req,
932                                            struct winbindd_response *presp);
933
934 struct tevent_req *winbindd_set_mapping_send(TALLOC_CTX *mem_ctx,
935                                              struct tevent_context *ev,
936                                              struct winbindd_cli_state *cli,
937                                              struct winbindd_request *request);
938 NTSTATUS winbindd_set_mapping_recv(struct tevent_req *req,
939                                    struct winbindd_response *response);
940
941 struct tevent_req *winbindd_remove_mapping_send(TALLOC_CTX *mem_ctx,
942                                                 struct tevent_context *ev,
943                                                 struct winbindd_cli_state *cli,
944                                                 struct winbindd_request *request);
945 NTSTATUS winbindd_remove_mapping_recv(struct tevent_req *req,
946                                       struct winbindd_response *response);
947
948 struct tevent_req *winbindd_set_hwm_send(TALLOC_CTX *mem_ctx,
949                                          struct tevent_context *ev,
950                                          struct winbindd_cli_state *cli,
951                                          struct winbindd_request *request);
952 NTSTATUS winbindd_set_hwm_recv(struct tevent_req *req,
953                                struct winbindd_response *response);
954
955 #endif /*  _WINBINDD_PROTO_H_  */