s3: Remove unused winbindd_dual_getuserdomgroups
[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 bool get_sam_group_entries(struct getent_state *ent);
357 bool fill_grent(TALLOC_CTX *mem_ctx, struct winbindd_gr *gr,
358                 const char *dom_name, const char *gr_name, gid_t unix_gid);
359 NTSTATUS winbindd_print_groupmembers(struct talloc_dict *members,
360                                      TALLOC_CTX *mem_ctx,
361                                      int *num_members, char **result);
362
363
364 /* The following definitions come from winbindd/winbindd_idmap.c  */
365
366 void init_idmap_child(void);
367 struct winbindd_child *idmap_child(void);
368 void winbindd_set_mapping_async(TALLOC_CTX *mem_ctx, const struct id_map *map,
369                              void (*cont)(void *private_data, bool success),
370                              void *private_data);
371 enum winbindd_result winbindd_dual_set_mapping(struct winbindd_domain *domain,
372                                             struct winbindd_cli_state *state);
373 void winbindd_remove_mapping_async(TALLOC_CTX *mem_ctx, const struct id_map *map,
374                              void (*cont)(void *private_data, bool success),
375                              void *private_data);
376 enum winbindd_result winbindd_dual_remove_mapping(struct winbindd_domain *domain,
377                                             struct winbindd_cli_state *state);
378 void winbindd_set_hwm_async(TALLOC_CTX *mem_ctx, const struct unixid *xid,
379                              void (*cont)(void *private_data, bool success),
380                              void *private_data);
381 enum winbindd_result winbindd_dual_set_hwm(struct winbindd_domain *domain,
382                                             struct winbindd_cli_state *state);
383 void winbindd_sids2xids_async(TALLOC_CTX *mem_ctx, void *sids, int size,
384                          void (*cont)(void *private_data, bool success, void *data, int len),
385                          void *private_data);
386 enum winbindd_result winbindd_dual_sids2xids(struct winbindd_domain *domain,
387                                            struct winbindd_cli_state *state);
388
389 /* The following definitions come from winbindd/winbindd_locator.c  */
390
391 void init_locator_child(void);
392 struct winbindd_child *locator_child(void);
393 void winbindd_dsgetdcname(struct winbindd_cli_state *state);
394
395 /* The following definitions come from winbindd/winbindd_misc.c  */
396
397 void winbindd_check_machine_acct(struct winbindd_cli_state *state);
398 enum winbindd_result winbindd_dual_check_machine_acct(struct winbindd_domain *domain,
399                                                       struct winbindd_cli_state *state);
400 void winbindd_list_ent(struct winbindd_cli_state *state, enum ent_type type);
401 void winbindd_list_trusted_domains(struct winbindd_cli_state *state);
402 enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain *domain,
403                                                         struct winbindd_cli_state *state);
404 void winbindd_show_sequence(struct winbindd_cli_state *state);
405 enum winbindd_result winbindd_dual_show_sequence(struct winbindd_domain *domain,
406                                                  struct winbindd_cli_state *state);
407 void winbindd_domain_info(struct winbindd_cli_state *state);
408 void winbindd_ping(struct winbindd_cli_state *state);
409 void winbindd_info(struct winbindd_cli_state *state);
410 void winbindd_interface_version(struct winbindd_cli_state *state);
411 void winbindd_domain_name(struct winbindd_cli_state *state);
412 void winbindd_netbios_name(struct winbindd_cli_state *state);
413 void winbindd_priv_pipe_dir(struct winbindd_cli_state *state);
414
415 /* The following definitions come from winbindd/winbindd_ndr.c  */
416
417 void ndr_print_winbindd_child(struct ndr_print *ndr,
418                               const char *name,
419                               const struct winbindd_child *r);
420 void ndr_print_winbindd_cm_conn(struct ndr_print *ndr,
421                                 const char *name,
422                                 const struct winbindd_cm_conn *r);
423 void ndr_print_winbindd_methods(struct ndr_print *ndr,
424                                 const char *name,
425                                 const struct winbindd_methods *r);
426 void ndr_print_winbindd_domain(struct ndr_print *ndr,
427                                const char *name,
428                                const struct winbindd_domain *r);
429
430 /* The following definitions come from winbindd/winbindd_pam.c  */
431
432 bool check_request_flags(uint32_t flags);
433 struct winbindd_domain *find_auth_domain(uint8_t flags,
434                                          const char *domain_name);
435 NTSTATUS check_info3_in_group(struct netr_SamInfo3 *info3,
436                               const char *group_sid);
437 NTSTATUS append_auth_data(struct winbindd_cli_state *state,
438                           struct netr_SamInfo3 *info3,
439                           const char *name_domain,
440                           const char *name_user);
441 void winbindd_pam_auth(struct winbindd_cli_state *state);
442 enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
443                                             struct winbindd_cli_state *state) ;
444 void winbindd_pam_auth_crap(struct winbindd_cli_state *state);
445 enum winbindd_result winbindd_dual_pam_auth_crap(struct winbindd_domain *domain,
446                                                  struct winbindd_cli_state *state) ;
447 void winbindd_pam_chauthtok(struct winbindd_cli_state *state);
448 enum winbindd_result winbindd_dual_pam_chauthtok(struct winbindd_domain *contact_domain,
449                                                  struct winbindd_cli_state *state);
450 void winbindd_pam_logoff(struct winbindd_cli_state *state);
451 enum winbindd_result winbindd_dual_pam_logoff(struct winbindd_domain *domain,
452                                               struct winbindd_cli_state *state) ;
453 void winbindd_pam_chng_pswd_auth_crap(struct winbindd_cli_state *state);
454 enum winbindd_result winbindd_dual_pam_chng_pswd_auth_crap(struct winbindd_domain *domainSt, struct winbindd_cli_state *state);
455
456 /* The following definitions come from winbindd/winbindd_passdb.c  */
457
458
459 /* The following definitions come from winbindd/winbindd_reconnect.c  */
460
461
462 /* The following definitions come from winbindd/winbindd_sid.c  */
463
464 void winbindd_lookupsid(struct winbindd_cli_state *state);
465 void winbindd_lookupname(struct winbindd_cli_state *state);
466 void winbindd_lookuprids(struct winbindd_cli_state *state);
467 void winbindd_sid_to_uid(struct winbindd_cli_state *state);
468 void winbindd_sid_to_gid(struct winbindd_cli_state *state);
469 void winbindd_set_mapping(struct winbindd_cli_state *state);
470 void winbindd_remove_mapping(struct winbindd_cli_state *state);
471 void winbindd_set_hwm(struct winbindd_cli_state *state);
472 void winbindd_uid_to_sid(struct winbindd_cli_state *state);
473 void winbindd_gid_to_sid(struct winbindd_cli_state *state);
474 void winbindd_allocate_uid(struct winbindd_cli_state *state);
475 enum winbindd_result winbindd_dual_allocate_uid(struct winbindd_domain *domain,
476                                                 struct winbindd_cli_state *state);
477 void winbindd_allocate_gid(struct winbindd_cli_state *state);
478 enum winbindd_result winbindd_dual_allocate_gid(struct winbindd_domain *domain,
479                                                 struct winbindd_cli_state *state);
480
481 /* The following definitions come from winbindd/winbindd_user.c  */
482
483 enum winbindd_result winbindd_dual_userinfo(struct winbindd_domain *domain,
484                                             struct winbindd_cli_state *state);
485 void winbindd_getpwnam(struct winbindd_cli_state *state);
486 void winbindd_getpwuid(struct winbindd_cli_state *state);
487 void winbindd_getpwsid(struct winbindd_cli_state *state);
488 void winbindd_setpwent(struct winbindd_cli_state *state);
489 void winbindd_endpwent(struct winbindd_cli_state *state);
490 void winbindd_getpwent(struct winbindd_cli_state *state);
491 void winbindd_list_users(struct winbindd_cli_state *state);
492
493 /* The following definitions come from winbindd/winbindd_util.c  */
494
495 struct winbindd_domain *domain_list(void);
496 void free_domain_list(void);
497 void rescan_trusted_domains(struct tevent_context *ev, struct tevent_timer *te,
498                             struct timeval now, void *private_data);
499 enum winbindd_result winbindd_dual_init_connection(struct winbindd_domain *domain,
500                                                    struct winbindd_cli_state *state);
501 bool init_domain_list(void);
502 void check_domain_trusted( const char *name, const DOM_SID *user_sid );
503 struct winbindd_domain *find_domain_from_name_noinit(const char *domain_name);
504 struct winbindd_domain *find_domain_from_name(const char *domain_name);
505 struct winbindd_domain *find_domain_from_sid_noinit(const DOM_SID *sid);
506 struct winbindd_domain *find_domain_from_sid(const DOM_SID *sid);
507 struct winbindd_domain *find_our_domain(void);
508 struct winbindd_domain *find_root_domain(void);
509 struct winbindd_domain *find_builtin_domain(void);
510 struct winbindd_domain *find_lookup_domain_from_sid(const DOM_SID *sid);
511 struct winbindd_domain *find_lookup_domain_from_name(const char *domain_name);
512 bool winbindd_lookup_sid_by_name(TALLOC_CTX *mem_ctx,
513                                  enum winbindd_cmd orig_cmd,
514                                  struct winbindd_domain *domain, 
515                                  const char *domain_name,
516                                  const char *name, DOM_SID *sid, 
517                                  enum lsa_SidType *type);
518 bool winbindd_lookup_name_by_sid(TALLOC_CTX *mem_ctx,
519                                  struct winbindd_domain *domain,
520                                  DOM_SID *sid,
521                                  char **dom_name,
522                                  char **name,
523                                  enum lsa_SidType *type);
524 void free_getent_state(struct getent_state *state);
525 bool parse_domain_user(const char *domuser, fstring domain, fstring user);
526 bool parse_domain_user_talloc(TALLOC_CTX *mem_ctx, const char *domuser,
527                               char **domain, char **user);
528 void parse_add_domuser(void *buf, char *domuser, int *len);
529 bool canonicalize_username(fstring username_inout, fstring domain, fstring user);
530 void fill_domain_username(fstring name, const char *domain, const char *user, bool can_assume);
531 char *fill_domain_username_talloc(TALLOC_CTX *ctx,
532                                   const char *domain,
533                                   const char *user,
534                                   bool can_assume);
535 const char *get_winbind_pipe_dir(void) ;
536 char *get_winbind_priv_pipe_dir(void) ;
537 int open_winbindd_socket(void);
538 int open_winbindd_priv_socket(void);
539 struct winbindd_cli_state *winbindd_client_list(void);
540 void winbindd_add_client(struct winbindd_cli_state *cli);
541 void winbindd_remove_client(struct winbindd_cli_state *cli);
542 void winbindd_kill_all_clients(void);
543 int winbindd_num_clients(void);
544 NTSTATUS lookup_usergroups_cached(struct winbindd_domain *domain,
545                                   TALLOC_CTX *mem_ctx,
546                                   const DOM_SID *user_sid,
547                                   uint32 *p_num_groups, DOM_SID **user_sids);
548
549 NTSTATUS normalize_name_map(TALLOC_CTX *mem_ctx,
550                              struct winbindd_domain *domain,
551                              const char *name,
552                              char **normalized);
553 NTSTATUS normalize_name_unmap(TALLOC_CTX *mem_ctx,
554                               char *name,
555                               char **normalized);
556
557 NTSTATUS resolve_username_to_alias(TALLOC_CTX *mem_ctx,
558                                    struct winbindd_domain *domain,
559                                    const char *name, char **alias);
560 NTSTATUS resolve_alias_to_username(TALLOC_CTX *mem_ctx,
561                                    struct winbindd_domain *domain,
562                                    const char *alias, char **name);
563
564 bool winbindd_can_contact_domain(struct winbindd_domain *domain);
565 bool winbindd_internal_child(struct winbindd_child *child);
566 void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain);
567 void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain);
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 set_auth_errors(struct winbindd_response *resp, NTSTATUS result);
571
572 /* The following definitions come from winbindd/winbindd_wins.c  */
573
574 void winbindd_wins_byip(struct winbindd_cli_state *state);
575 void winbindd_wins_byname(struct winbindd_cli_state *state);
576
577 struct tevent_req *wb_ping_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
578                                 struct winbindd_cli_state *cli,
579                                 struct winbindd_request *request);
580 NTSTATUS wb_ping_recv(struct tevent_req *req,
581                       struct winbindd_response *resp);
582
583 enum winbindd_result winbindd_dual_ping(struct winbindd_domain *domain,
584                                         struct winbindd_cli_state *state);
585
586 struct rpc_pipe_client *wbint_rpccli_create(TALLOC_CTX *mem_ctx,
587                                             struct winbindd_domain *domain,
588                                             struct winbindd_child *child);
589 enum winbindd_result winbindd_dual_ndrcmd(struct winbindd_domain *domain,
590                                           struct winbindd_cli_state *state);
591
592 struct tevent_req *wb_lookupsid_send(TALLOC_CTX *mem_ctx,
593                                      struct tevent_context *ev,
594                                      const struct dom_sid *sid);
595 NTSTATUS wb_lookupsid_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
596                            enum lsa_SidType *type, const char **domain,
597                            const char **name);
598
599 struct tevent_req *winbindd_lookupsid_send(TALLOC_CTX *mem_ctx,
600                                            struct tevent_context *ev,
601                                            struct winbindd_cli_state *cli,
602                                            struct winbindd_request *request);
603 NTSTATUS winbindd_lookupsid_recv(struct tevent_req *req,
604                                  struct winbindd_response *response);
605
606 struct tevent_req *wb_lookupname_send(TALLOC_CTX *mem_ctx,
607                                       struct tevent_context *ev,
608                                       const char *dom_name, const char *name,
609                                       uint32_t flags);
610 NTSTATUS wb_lookupname_recv(struct tevent_req *req, struct dom_sid *sid,
611                             enum lsa_SidType *type);
612
613 struct tevent_req *winbindd_lookupname_send(TALLOC_CTX *mem_ctx,
614                                             struct tevent_context *ev,
615                                             struct winbindd_cli_state *cli,
616                                             struct winbindd_request *request);
617 NTSTATUS winbindd_lookupname_recv(struct tevent_req *req,
618                                   struct winbindd_response *response);
619
620 struct tevent_req *wb_sid2uid_send(TALLOC_CTX *mem_ctx,
621                                    struct tevent_context *ev,
622                                    const struct dom_sid *sid);
623 NTSTATUS wb_sid2uid_recv(struct tevent_req *req, uid_t *uid);
624
625 struct tevent_req *winbindd_sid_to_uid_send(TALLOC_CTX *mem_ctx,
626                                             struct tevent_context *ev,
627                                             struct winbindd_cli_state *cli,
628                                             struct winbindd_request *request);
629 NTSTATUS winbindd_sid_to_uid_recv(struct tevent_req *req,
630                                   struct winbindd_response *response);
631
632 struct tevent_req *wb_sid2gid_send(TALLOC_CTX *mem_ctx,
633                                    struct tevent_context *ev,
634                                    const struct dom_sid *sid);
635 NTSTATUS wb_sid2gid_recv(struct tevent_req *req, gid_t *gid);
636
637 struct tevent_req *winbindd_sid_to_gid_send(TALLOC_CTX *mem_ctx,
638                                             struct tevent_context *ev,
639                                             struct winbindd_cli_state *cli,
640                                             struct winbindd_request *request);
641 NTSTATUS winbindd_sid_to_gid_recv(struct tevent_req *req,
642                                   struct winbindd_response *response);
643
644 struct tevent_req *wb_uid2sid_send(TALLOC_CTX *mem_ctx,
645                                    struct tevent_context *ev,
646                                    uid_t uid);
647 NTSTATUS wb_uid2sid_recv(struct tevent_req *req, struct dom_sid *sid);
648
649 struct tevent_req *winbindd_uid_to_sid_send(TALLOC_CTX *mem_ctx,
650                                             struct tevent_context *ev,
651                                             struct winbindd_cli_state *cli,
652                                             struct winbindd_request *request);
653 NTSTATUS winbindd_uid_to_sid_recv(struct tevent_req *req,
654                                   struct winbindd_response *response);
655
656 struct tevent_req *wb_gid2sid_send(TALLOC_CTX *mem_ctx,
657                                    struct tevent_context *ev,
658                                    gid_t gid);
659 NTSTATUS wb_gid2sid_recv(struct tevent_req *req, struct dom_sid *sid);
660
661 struct tevent_req *winbindd_gid_to_sid_send(TALLOC_CTX *mem_ctx,
662                                             struct tevent_context *ev,
663                                             struct winbindd_cli_state *cli,
664                                             struct winbindd_request *request);
665 NTSTATUS winbindd_gid_to_sid_recv(struct tevent_req *req,
666                                   struct winbindd_response *response);
667
668 struct tevent_req *winbindd_allocate_uid_send(TALLOC_CTX *mem_ctx,
669                                               struct tevent_context *ev,
670                                               struct winbindd_cli_state *cli,
671                                               struct winbindd_request *request);
672 NTSTATUS winbindd_allocate_uid_recv(struct tevent_req *req,
673                                     struct winbindd_response *response);
674
675 struct tevent_req *winbindd_allocate_gid_send(TALLOC_CTX *mem_ctx,
676                                               struct tevent_context *ev,
677                                               struct winbindd_cli_state *cli,
678                                               struct winbindd_request *request);
679 NTSTATUS winbindd_allocate_gid_recv(struct tevent_req *req,
680                                     struct winbindd_response *response);
681
682 struct tevent_req *wb_queryuser_send(TALLOC_CTX *mem_ctx,
683                                      struct tevent_context *ev,
684                                      const struct dom_sid *user_sid);
685 NTSTATUS wb_queryuser_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
686                            struct wbint_userinfo **pinfo);
687
688 struct tevent_req *wb_getpwsid_send(TALLOC_CTX *mem_ctx,
689                                     struct tevent_context *ev,
690                                     const struct dom_sid *user_sid,
691                                     struct winbindd_pw *pw);
692 NTSTATUS wb_getpwsid_recv(struct tevent_req *req);
693
694 struct tevent_req *winbindd_getpwsid_send(TALLOC_CTX *mem_ctx,
695                                           struct tevent_context *ev,
696                                           struct winbindd_cli_state *cli,
697                                           struct winbindd_request *request);
698 NTSTATUS winbindd_getpwsid_recv(struct tevent_req *req,
699                                 struct winbindd_response *response);
700
701 struct tevent_req *winbindd_getpwnam_send(TALLOC_CTX *mem_ctx,
702                                           struct tevent_context *ev,
703                                           struct winbindd_cli_state *cli,
704                                           struct winbindd_request *request);
705 NTSTATUS winbindd_getpwnam_recv(struct tevent_req *req,
706                                 struct winbindd_response *response);
707
708 struct tevent_req *winbindd_getpwuid_send(TALLOC_CTX *mem_ctx,
709                                           struct tevent_context *ev,
710                                           struct winbindd_cli_state *cli,
711                                           struct winbindd_request *request);
712 NTSTATUS winbindd_getpwuid_recv(struct tevent_req *req,
713                                 struct winbindd_response *response);
714 struct tevent_req *wb_lookupuseraliases_send(TALLOC_CTX *mem_ctx,
715                                              struct tevent_context *ev,
716                                              struct winbindd_domain *domain,
717                                              int num_sids,
718                                              const struct dom_sid *sids);
719 NTSTATUS wb_lookupuseraliases_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
720                                    uint32_t *num_aliases, uint32_t **aliases);
721 struct tevent_req *winbindd_getsidaliases_send(TALLOC_CTX *mem_ctx,
722                                                struct tevent_context *ev,
723                                                struct winbindd_cli_state *cli,
724                                                struct winbindd_request *request);
725 NTSTATUS winbindd_getsidaliases_recv(struct tevent_req *req,
726                                      struct winbindd_response *response);
727 struct tevent_req *wb_lookupusergroups_send(TALLOC_CTX *mem_ctx,
728                                             struct tevent_context *ev,
729                                             struct winbindd_domain *domain,
730                                             const struct dom_sid *sid);
731 NTSTATUS wb_lookupusergroups_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
732                                   int *num_sids, struct dom_sid **sids);
733
734 struct tevent_req *winbindd_getuserdomgroups_send(TALLOC_CTX *mem_ctx,
735                                                   struct tevent_context *ev,
736                                                   struct winbindd_cli_state *cli,
737                                                   struct winbindd_request *request);
738 NTSTATUS winbindd_getuserdomgroups_recv(struct tevent_req *req,
739                                         struct winbindd_response *response);
740 struct tevent_req *wb_gettoken_send(TALLOC_CTX *mem_ctx,
741                                     struct tevent_context *ev,
742                                     const struct dom_sid *sid);
743 NTSTATUS wb_gettoken_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
744                           int *num_sids, struct dom_sid **sids);
745 struct tevent_req *winbindd_getgroups_send(TALLOC_CTX *mem_ctx,
746                                            struct tevent_context *ev,
747                                            struct winbindd_cli_state *cli,
748                                            struct winbindd_request *request);
749 NTSTATUS winbindd_getgroups_recv(struct tevent_req *req,
750                                  struct winbindd_response *response);
751
752 struct tevent_req *wb_seqnum_send(TALLOC_CTX *mem_ctx,
753                                   struct tevent_context *ev,
754                                   struct winbindd_domain *domain);
755 NTSTATUS wb_seqnum_recv(struct tevent_req *req, uint32_t *seqnum);
756
757 struct tevent_req *wb_seqnums_send(TALLOC_CTX *mem_ctx,
758                                    struct tevent_context *ev);
759 NTSTATUS wb_seqnums_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
760                          int *num_domains, struct winbindd_domain ***domains,
761                          NTSTATUS **stati, uint32_t **seqnums);
762
763 struct tevent_req *winbindd_show_sequence_send(TALLOC_CTX *mem_ctx,
764                                                struct tevent_context *ev,
765                                                struct winbindd_cli_state *cli,
766                                                struct winbindd_request *request);
767 NTSTATUS winbindd_show_sequence_recv(struct tevent_req *req,
768                                      struct winbindd_response *response);
769
770 struct tevent_req *wb_group_members_send(TALLOC_CTX *mem_ctx,
771                                          struct tevent_context *ev,
772                                          const struct dom_sid *sid,
773                                          enum lsa_SidType type,
774                                          int max_depth);
775 NTSTATUS wb_group_members_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
776                                struct talloc_dict **members);
777
778 struct tevent_req *wb_getgrsid_send(TALLOC_CTX *mem_ctx,
779                                     struct tevent_context *ev,
780                                     const struct dom_sid *group_sid,
781                                     int max_nesting);
782 NTSTATUS wb_getgrsid_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
783                           const char **domname, const char **name, gid_t *gid,
784                           struct talloc_dict **members);
785
786 struct tevent_req *winbindd_getgrgid_send(TALLOC_CTX *mem_ctx,
787                                           struct tevent_context *ev,
788                                           struct winbindd_cli_state *cli,
789                                           struct winbindd_request *request);
790 NTSTATUS winbindd_getgrgid_recv(struct tevent_req *req,
791                                 struct winbindd_response *response);
792
793 struct tevent_req *winbindd_getgrnam_send(TALLOC_CTX *mem_ctx,
794                                           struct tevent_context *ev,
795                                           struct winbindd_cli_state *cli,
796                                           struct winbindd_request *request);
797 NTSTATUS winbindd_getgrnam_recv(struct tevent_req *req,
798                                 struct winbindd_response *response);
799
800 struct tevent_req *winbindd_getusersids_send(TALLOC_CTX *mem_ctx,
801                                              struct tevent_context *ev,
802                                              struct winbindd_cli_state *cli,
803                                              struct winbindd_request *request);
804 NTSTATUS winbindd_getusersids_recv(struct tevent_req *req,
805                                    struct winbindd_response *response);
806
807 struct tevent_req *winbindd_lookuprids_send(TALLOC_CTX *mem_ctx,
808                                             struct tevent_context *ev,
809                                             struct winbindd_cli_state *cli,
810                                             struct winbindd_request *request);
811 NTSTATUS winbindd_lookuprids_recv(struct tevent_req *req,
812                                   struct winbindd_response *response);
813
814 struct tevent_req *wb_query_user_list_send(TALLOC_CTX *mem_ctx,
815                                            struct tevent_context *ev,
816                                            struct winbindd_domain *domain);
817 NTSTATUS wb_query_user_list_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
818                                  int *num_users,
819                                  struct wbint_userinfo **users);
820
821 struct tevent_req *wb_fill_pwent_send(TALLOC_CTX *mem_ctx,
822                                       struct tevent_context *ev,
823                                       struct wbint_userinfo *info,
824                                       struct winbindd_pw *pw);
825 NTSTATUS wb_fill_pwent_recv(struct tevent_req *req);
826
827 struct tevent_req *wb_next_pwent_send(TALLOC_CTX *mem_ctx,
828                                       struct tevent_context *ev,
829                                       struct getpwent_state *gstate,
830                                       struct winbindd_pw *pw);
831 NTSTATUS wb_next_pwent_recv(struct tevent_req *req);
832
833 struct tevent_req *winbindd_setpwent_send(TALLOC_CTX *mem_ctx,
834                                           struct tevent_context *ev,
835                                           struct winbindd_cli_state *cli,
836                                           struct winbindd_request *request);
837 NTSTATUS winbindd_setpwent_recv(struct tevent_req *req,
838                                 struct winbindd_response *presp);
839
840 struct tevent_req *winbindd_getpwent_send(TALLOC_CTX *mem_ctx,
841                                           struct tevent_context *ev,
842                                           struct winbindd_cli_state *cli,
843                                           struct winbindd_request *request);
844 NTSTATUS winbindd_getpwent_recv(struct tevent_req *req,
845                                 struct winbindd_response *response);
846
847 struct tevent_req *winbindd_endpwent_send(TALLOC_CTX *mem_ctx,
848                                           struct tevent_context *ev,
849                                           struct winbindd_cli_state *cli,
850                                           struct winbindd_request *request);
851 NTSTATUS winbindd_endpwent_recv(struct tevent_req *req,
852                                 struct winbindd_response *response);
853
854 struct tevent_req *winbindd_dsgetdcname_send(TALLOC_CTX *mem_ctx,
855                                              struct tevent_context *ev,
856                                              struct winbindd_cli_state *cli,
857                                              struct winbindd_request *request);
858 NTSTATUS winbindd_dsgetdcname_recv(struct tevent_req *req,
859                                    struct winbindd_response *response);
860
861 struct tevent_req *wb_dsgetdcname_send(TALLOC_CTX *mem_ctx,
862                                        struct tevent_context *ev,
863                                        const char *domain_name,
864                                        const struct GUID *domain_guid,
865                                        const char *site_name,
866                                        uint32_t flags);
867 NTSTATUS wb_dsgetdcname_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
868                              struct netr_DsRGetDCNameInfo **pdcinfo);
869
870 struct tevent_req *winbindd_getdcname_send(TALLOC_CTX *mem_ctx,
871                                            struct tevent_context *ev,
872                                            struct winbindd_cli_state *cli,
873                                            struct winbindd_request *request);
874 NTSTATUS winbindd_getdcname_recv(struct tevent_req *req,
875                                  struct winbindd_response *response);
876
877 struct tevent_req *wb_next_grent_send(TALLOC_CTX *mem_ctx,
878                                       struct tevent_context *ev,
879                                       int max_nesting,
880                                       struct getgrent_state *gstate,
881                                       struct winbindd_gr *gr);
882 NTSTATUS wb_next_grent_recv(struct tevent_req *req, TALLOC_CTX *mem_ctx,
883                             struct talloc_dict **members);
884
885 struct tevent_req *winbindd_setgrent_send(TALLOC_CTX *mem_ctx,
886                                           struct tevent_context *ev,
887                                           struct winbindd_cli_state *cli,
888                                           struct winbindd_request *request);
889 NTSTATUS winbindd_setgrent_recv(struct tevent_req *req,
890                                 struct winbindd_response *response);
891 struct tevent_req *winbindd_getgrent_send(TALLOC_CTX *mem_ctx,
892                                           struct tevent_context *ev,
893                                           struct winbindd_cli_state *cli,
894                                           struct winbindd_request *request);
895 NTSTATUS winbindd_getgrent_recv(struct tevent_req *req,
896                                 struct winbindd_response *response);
897 struct tevent_req *winbindd_endgrent_send(TALLOC_CTX *mem_ctx,
898                                           struct tevent_context *ev,
899                                           struct winbindd_cli_state *cli,
900                                           struct winbindd_request *request);
901 NTSTATUS winbindd_endgrent_recv(struct tevent_req *req,
902                                 struct winbindd_response *response);
903
904 struct tevent_req *winbindd_list_users_send(TALLOC_CTX *mem_ctx,
905                                             struct tevent_context *ev,
906                                             struct winbindd_cli_state *cli,
907                                             struct winbindd_request *request);
908 NTSTATUS winbindd_list_users_recv(struct tevent_req *req,
909                                   struct winbindd_response *response);
910
911 struct tevent_req *winbindd_list_groups_send(TALLOC_CTX *mem_ctx,
912                                              struct tevent_context *ev,
913                                              struct winbindd_cli_state *cli,
914                                              struct winbindd_request *request);
915 NTSTATUS winbindd_list_groups_recv(struct tevent_req *req,
916                                    struct winbindd_response *response);
917
918 struct tevent_req *winbindd_check_machine_acct_send(TALLOC_CTX *mem_ctx,
919                                                     struct tevent_context *ev,
920                                                     struct winbindd_cli_state *cli,
921                                                     struct winbindd_request *request);
922 NTSTATUS winbindd_check_machine_acct_recv(struct tevent_req *req,
923                                           struct winbindd_response *presp);
924
925 struct tevent_req *winbindd_change_machine_acct_send(TALLOC_CTX *mem_ctx,
926                                                      struct tevent_context *ev,
927                                                      struct winbindd_cli_state *cli,
928                                                      struct winbindd_request *request);
929 NTSTATUS winbindd_change_machine_acct_recv(struct tevent_req *req,
930                                            struct winbindd_response *presp);
931
932 struct tevent_req *winbindd_set_mapping_send(TALLOC_CTX *mem_ctx,
933                                              struct tevent_context *ev,
934                                              struct winbindd_cli_state *cli,
935                                              struct winbindd_request *request);
936 NTSTATUS winbindd_set_mapping_recv(struct tevent_req *req,
937                                    struct winbindd_response *response);
938
939 struct tevent_req *winbindd_remove_mapping_send(TALLOC_CTX *mem_ctx,
940                                                 struct tevent_context *ev,
941                                                 struct winbindd_cli_state *cli,
942                                                 struct winbindd_request *request);
943 NTSTATUS winbindd_remove_mapping_recv(struct tevent_req *req,
944                                       struct winbindd_response *response);
945
946 struct tevent_req *winbindd_set_hwm_send(TALLOC_CTX *mem_ctx,
947                                          struct tevent_context *ev,
948                                          struct winbindd_cli_state *cli,
949                                          struct winbindd_request *request);
950 NTSTATUS winbindd_set_hwm_recv(struct tevent_req *req,
951                                struct winbindd_response *response);
952
953 #endif /*  _WINBINDD_PROTO_H_  */