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