source: branches/samba-3.2.x/source/winbindd/winbindd_proto.h

Last change on this file was 233, checked in by Herwig Bauernfeind, 16 years ago

Update 3.2 branch to 3.2.9

File size: 25.2 KB
Line 
1#ifndef _WINBINDD_PROTO_H_
2#define _WINBINDD_PROTO_H_
3
4/* This file is automatically generated with "make proto". DO NOT EDIT */
5
6
7/* The following definitions come from auth/token_util.c */
8
9bool nt_token_check_sid ( const DOM_SID *sid, const NT_USER_TOKEN *token );
10bool nt_token_check_domain_rid( NT_USER_TOKEN *token, uint32 rid );
11NT_USER_TOKEN *get_root_nt_token( void );
12NTSTATUS add_aliases(const DOM_SID *domain_sid,
13 struct nt_user_token *token);
14struct nt_user_token *create_local_nt_token(TALLOC_CTX *mem_ctx,
15 const DOM_SID *user_sid,
16 bool is_guest,
17 int num_groupsids,
18 const DOM_SID *groupsids);
19void debug_nt_user_token(int dbg_class, int dbg_lev, NT_USER_TOKEN *token);
20void debug_unix_user_token(int dbg_class, int dbg_lev, uid_t uid, gid_t gid,
21 int n_groups, gid_t *groups);
22
23/* The following definitions come from smbd/connection.c */
24
25bool yield_connection(connection_struct *conn, const char *name);
26int count_current_connections( const char *sharename, bool clear );
27int count_all_current_connections(void);
28bool claim_connection(connection_struct *conn, const char *name,
29 uint32 msg_flags);
30bool register_message_flags(bool doreg, uint32 msg_flags);
31bool store_pipe_opendb( smb_np_struct *p );
32bool delete_pipe_opendb( smb_np_struct *p );
33
34/* The following definitions come from winbindd/winbindd.c */
35
36struct event_context *winbind_event_context(void);
37struct messaging_context *winbind_messaging_context(void);
38void add_fd_event(struct fd_event *ev);
39void remove_fd_event(struct fd_event *ev);
40void setup_async_read(struct fd_event *event, void *data, size_t length,
41 void (*finished)(void *private_data, bool success),
42 void *private_data);
43void setup_async_write(struct fd_event *event, void *data, size_t length,
44 void (*finished)(void *private_data, bool success),
45 void *private_data);
46void request_error(struct winbindd_cli_state *state);
47void request_ok(struct winbindd_cli_state *state);
48void request_finished_cont(void *private_data, bool success);
49void winbind_check_sighup(const char *logfile);
50void winbind_check_sigterm(bool is_parent);
51int main(int argc, char **argv, char **envp);
52
53/* The following definitions come from winbindd/winbindd_ads.c */
54
55
56/* The following definitions come from winbindd/winbindd_async.c */
57
58void do_async(TALLOC_CTX *mem_ctx, struct winbindd_child *child,
59 const struct winbindd_request *request,
60 void (*cont)(TALLOC_CTX *mem_ctx, bool success,
61 struct winbindd_response *response,
62 void *c, void *private_data),
63 void *c, void *private_data);
64void do_async_domain(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
65 const struct winbindd_request *request,
66 void (*cont)(TALLOC_CTX *mem_ctx, bool success,
67 struct winbindd_response *response,
68 void *c, void *private_data),
69 void *c, void *private_data);
70void winbindd_lookupsid_async(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
71 void (*cont)(void *private_data, bool success,
72 const char *dom_name,
73 const char *name,
74 enum lsa_SidType type),
75 void *private_data);
76enum winbindd_result winbindd_dual_lookupsid(struct winbindd_domain *domain,
77 struct winbindd_cli_state *state);
78void winbindd_lookupname_async(TALLOC_CTX *mem_ctx,
79 const char *dom_name, const char *name,
80 void (*cont)(void *private_data, bool success,
81 const DOM_SID *sid,
82 enum lsa_SidType type),
83 enum winbindd_cmd orig_cmd,
84 void *private_data);
85enum winbindd_result winbindd_dual_lookupname(struct winbindd_domain *domain,
86 struct winbindd_cli_state *state);
87void winbindd_listent_async(TALLOC_CTX *mem_ctx,
88 struct winbindd_domain *domain,
89 void (*cont)(void *private_data, bool success,
90 fstring dom_name, char* extra_data),
91 void *private_data, enum ent_type type);
92enum winbindd_result winbindd_dual_list_users(struct winbindd_domain *domain,
93 struct winbindd_cli_state *state);
94enum winbindd_result winbindd_dual_list_groups(struct winbindd_domain *domain,
95 struct winbindd_cli_state *state);
96bool print_sidlist(TALLOC_CTX *mem_ctx, const DOM_SID *sids,
97 size_t num_sids, char **result, ssize_t *len);
98enum winbindd_result winbindd_dual_lookuprids(struct winbindd_domain *domain,
99 struct winbindd_cli_state *state);
100void winbindd_getsidaliases_async(struct winbindd_domain *domain,
101 TALLOC_CTX *mem_ctx,
102 const DOM_SID *sids, size_t num_sids,
103 void (*cont)(void *private_data,
104 bool success,
105 const DOM_SID *aliases,
106 size_t num_aliases),
107 void *private_data);
108enum winbindd_result winbindd_dual_getsidaliases(struct winbindd_domain *domain,
109 struct winbindd_cli_state *state);
110void winbindd_gettoken_async(TALLOC_CTX *mem_ctx, const DOM_SID *user_sid,
111 void (*cont)(void *private_data, bool success,
112 DOM_SID *sids, size_t num_sids),
113 void *private_data);
114void query_user_async(TALLOC_CTX *mem_ctx, struct winbindd_domain *domain,
115 const DOM_SID *sid,
116 void (*cont)(void *private_data, bool success,
117 const char *acct_name,
118 const char *full_name,
119 const char *homedir,
120 const char *shell,
121 gid_t gid,
122 uint32 group_rid),
123 void *private_data);
124
125/* The following definitions come from winbindd/winbindd_cache.c */
126
127void winbindd_check_cache_size(time_t t);
128struct cache_entry *centry_start(struct winbindd_domain *domain, NTSTATUS status);
129NTSTATUS wcache_cached_creds_exist(struct winbindd_domain *domain, const DOM_SID *sid);
130NTSTATUS wcache_get_creds(struct winbindd_domain *domain,
131 TALLOC_CTX *mem_ctx,
132 const DOM_SID *sid,
133 const uint8 **cached_nt_pass,
134 const uint8 **cached_salt);
135NTSTATUS wcache_save_creds(struct winbindd_domain *domain,
136 TALLOC_CTX *mem_ctx,
137 const DOM_SID *sid,
138 const uint8 nt_pass[NT_HASH_LEN]);
139void wcache_invalidate_samlogon(struct winbindd_domain *domain,
140 struct netr_SamInfo3 *info3);
141bool wcache_invalidate_cache(void);
142bool init_wcache(void);
143bool initialize_winbindd_cache(void);
144void close_winbindd_cache(void);
145void cache_store_response(pid_t pid, struct winbindd_response *response);
146bool cache_retrieve_response(pid_t pid, struct winbindd_response * response);
147void cache_cleanup_response(pid_t pid);
148bool lookup_cached_sid(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
149 char **domain_name, char **name,
150 enum lsa_SidType *type);
151bool lookup_cached_name(TALLOC_CTX *mem_ctx,
152 const char *domain_name,
153 const char *name,
154 DOM_SID *sid,
155 enum lsa_SidType *type);
156void cache_name2sid(struct winbindd_domain *domain,
157 const char *domain_name, const char *name,
158 enum lsa_SidType type, const DOM_SID *sid);
159void wcache_flush_cache(void);
160NTSTATUS wcache_count_cached_creds(struct winbindd_domain *domain, int *count);
161NTSTATUS wcache_remove_oldest_cached_creds(struct winbindd_domain *domain, const DOM_SID *sid) ;
162bool set_global_winbindd_state_offline(void);
163void set_global_winbindd_state_online(void);
164bool get_global_winbindd_state_offline(void);
165int winbindd_validate_cache(void);
166int winbindd_validate_cache_nobackup(void);
167bool winbindd_cache_validate_and_initialize(void);
168bool wcache_tdc_fetch_list( struct winbindd_tdc_domain **domains, size_t *num_domains );
169bool wcache_tdc_add_domain( struct winbindd_domain *domain );
170struct winbindd_tdc_domain * wcache_tdc_fetch_domain( TALLOC_CTX *ctx, const char *name );
171void wcache_tdc_clear( void );
172NTSTATUS nss_get_info_cached( struct winbindd_domain *domain,
173 const DOM_SID *user_sid,
174 TALLOC_CTX *ctx,
175 ADS_STRUCT *ads, LDAPMessage *msg,
176 char **homedir, char **shell, char **gecos,
177 gid_t *p_gid);
178
179/* The following definitions come from winbindd/winbindd_ccache_access.c */
180
181void winbindd_ccache_ntlm_auth(struct winbindd_cli_state *state);
182enum winbindd_result winbindd_dual_ccache_ntlm_auth(struct winbindd_domain *domain,
183 struct winbindd_cli_state *state);
184
185/* The following definitions come from winbindd/winbindd_cm.c */
186
187void set_domain_offline(struct winbindd_domain *domain);
188void set_domain_online_request(struct winbindd_domain *domain);
189void winbind_add_failed_connection_entry(const struct winbindd_domain *domain,
190 const char *server,
191 NTSTATUS result);
192void invalidate_cm_connection(struct winbindd_cm_conn *conn);
193void close_conns_after_fork(void);
194NTSTATUS init_dc_connection(struct winbindd_domain *domain);
195NTSTATUS cm_connect_sam(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
196 struct rpc_pipe_client **cli, POLICY_HND *sam_handle);
197NTSTATUS cm_connect_lsa(struct winbindd_domain *domain, TALLOC_CTX *mem_ctx,
198 struct rpc_pipe_client **cli, POLICY_HND *lsa_policy);
199NTSTATUS cm_connect_netlogon(struct winbindd_domain *domain,
200 struct rpc_pipe_client **cli);
201
202/* The following definitions come from winbindd/winbindd_cred_cache.c */
203
204void ccache_remove_all_after_fork(void);
205void ccache_regain_all_now(void);
206bool ccache_entry_exists(const char *username);
207bool ccache_entry_identical(const char *username,
208 uid_t uid,
209 const char *ccname);
210NTSTATUS add_ccache_to_list(const char *princ_name,
211 const char *ccname,
212 const char *service,
213 const char *username,
214 const char *realm,
215 uid_t uid,
216 time_t create_time,
217 time_t ticket_end,
218 time_t renew_until,
219 bool postponed_request);
220NTSTATUS remove_ccache(const char *username);
221struct WINBINDD_MEMORY_CREDS *find_memory_creds_by_name(const char *username);
222NTSTATUS winbindd_add_memory_creds(const char *username,
223 uid_t uid,
224 const char *pass);
225NTSTATUS winbindd_delete_memory_creds(const char *username);
226NTSTATUS winbindd_replace_memory_creds(const char *username,
227 const char *pass);
228
229/* The following definitions come from winbindd/winbindd_creds.c */
230
231NTSTATUS winbindd_get_creds(struct winbindd_domain *domain,
232 TALLOC_CTX *mem_ctx,
233 const DOM_SID *sid,
234 struct netr_SamInfo3 **info3,
235 const uint8 *cached_nt_pass[NT_HASH_LEN],
236 const uint8 *cred_salt[NT_HASH_LEN]);
237NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
238 TALLOC_CTX *mem_ctx,
239 const char *user,
240 const char *pass,
241 struct netr_SamInfo3 *info3,
242 const DOM_SID *user_sid);
243NTSTATUS winbindd_update_creds_by_info3(struct winbindd_domain *domain,
244 TALLOC_CTX *mem_ctx,
245 const char *user,
246 const char *pass,
247 struct netr_SamInfo3 *info3);
248NTSTATUS winbindd_update_creds_by_sid(struct winbindd_domain *domain,
249 TALLOC_CTX *mem_ctx,
250 const DOM_SID *sid,
251 const char *pass);
252NTSTATUS winbindd_update_creds_by_name(struct winbindd_domain *domain,
253 TALLOC_CTX *mem_ctx,
254 const char *user,
255 const char *pass);
256
257/* The following definitions come from winbindd/winbindd_domain.c */
258
259void setup_domain_child(struct winbindd_domain *domain,
260 struct winbindd_child *child);
261
262/* The following definitions come from winbindd/winbindd_dual.c */
263
264void async_request(TALLOC_CTX *mem_ctx, struct winbindd_child *child,
265 struct winbindd_request *request,
266 struct winbindd_response *response,
267 void (*continuation)(void *private_data, bool success),
268 void *private_data);
269void async_domain_request(TALLOC_CTX *mem_ctx,
270 struct winbindd_domain *domain,
271 struct winbindd_request *request,
272 struct winbindd_response *response,
273 void (*continuation)(void *private_data_data, bool success),
274 void *private_data_data);
275void sendto_child(struct winbindd_cli_state *state,
276 struct winbindd_child *child);
277void sendto_domain(struct winbindd_cli_state *state,
278 struct winbindd_domain *domain);
279void setup_child(struct winbindd_child *child,
280 const struct winbindd_child_dispatch_table *table,
281 const char *logprefix,
282 const char *logname);
283void winbind_child_died(pid_t pid);
284void winbindd_flush_negative_conn_cache(struct winbindd_domain *domain);
285void winbind_msg_debug(struct messaging_context *msg_ctx,
286 void *private_data,
287 uint32_t msg_type,
288 struct server_id server_id,
289 DATA_BLOB *data);
290void winbind_msg_offline(struct messaging_context *msg_ctx,
291 void *private_data,
292 uint32_t msg_type,
293 struct server_id server_id,
294 DATA_BLOB *data);
295void winbind_msg_online(struct messaging_context *msg_ctx,
296 void *private_data,
297 uint32_t msg_type,
298 struct server_id server_id,
299 DATA_BLOB *data);
300void winbind_msg_onlinestatus(struct messaging_context *msg_ctx,
301 void *private_data,
302 uint32_t msg_type,
303 struct server_id server_id,
304 DATA_BLOB *data);
305void winbind_msg_dump_event_list(struct messaging_context *msg_ctx,
306 void *private_data,
307 uint32_t msg_type,
308 struct server_id server_id,
309 DATA_BLOB *data);
310void winbind_msg_dump_domain_list(struct messaging_context *msg_ctx,
311 void *private_data,
312 uint32_t msg_type,
313 struct server_id server_id,
314 DATA_BLOB *data);
315bool winbindd_reinit_after_fork(const char *logfilename);
316
317/* The following definitions come from winbindd/winbindd_group.c */
318
319void winbindd_getgrnam(struct winbindd_cli_state *state);
320void winbindd_getgrgid(struct winbindd_cli_state *state);
321void winbindd_setgrent(struct winbindd_cli_state *state);
322void winbindd_endgrent(struct winbindd_cli_state *state);
323bool get_sam_group_entries(struct getent_state *ent);
324void winbindd_getgrent(struct winbindd_cli_state *state);
325void winbindd_list_groups(struct winbindd_cli_state *state);
326void winbindd_getgroups(struct winbindd_cli_state *state);
327void winbindd_getusersids(struct winbindd_cli_state *state);
328void winbindd_getuserdomgroups(struct winbindd_cli_state *state);
329enum winbindd_result winbindd_dual_getuserdomgroups(struct winbindd_domain *domain,
330 struct winbindd_cli_state *state);
331
332/* The following definitions come from winbindd/winbindd_idmap.c */
333
334void init_idmap_child(void);
335struct winbindd_child *idmap_child(void);
336void winbindd_set_mapping_async(TALLOC_CTX *mem_ctx, const struct id_map *map,
337 void (*cont)(void *private_data, bool success),
338 void *private_data);
339enum winbindd_result winbindd_dual_set_mapping(struct winbindd_domain *domain,
340 struct winbindd_cli_state *state);
341void winbindd_set_hwm_async(TALLOC_CTX *mem_ctx, const struct unixid *xid,
342 void (*cont)(void *private_data, bool success),
343 void *private_data);
344enum winbindd_result winbindd_dual_set_hwm(struct winbindd_domain *domain,
345 struct winbindd_cli_state *state);
346void winbindd_sids2xids_async(TALLOC_CTX *mem_ctx, void *sids, int size,
347 void (*cont)(void *private_data, bool success, void *data, int len),
348 void *private_data);
349enum winbindd_result winbindd_dual_sids2xids(struct winbindd_domain *domain,
350 struct winbindd_cli_state *state);
351void winbindd_sid2uid_async(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
352 void (*cont)(void *private_data, bool success, uid_t uid),
353 void *private_data);
354enum winbindd_result winbindd_dual_sid2uid(struct winbindd_domain *domain,
355 struct winbindd_cli_state *state);
356void winbindd_sid2gid_async(TALLOC_CTX *mem_ctx, const DOM_SID *sid,
357 void (*cont)(void *private_data, bool success, gid_t gid),
358 void *private_data);
359enum winbindd_result winbindd_dual_sid2gid(struct winbindd_domain *domain,
360 struct winbindd_cli_state *state);
361void winbindd_uid2sid_async(TALLOC_CTX *mem_ctx, uid_t uid,
362 void (*cont)(void *private_data, bool success, const char *sid),
363 void *private_data);
364enum winbindd_result winbindd_dual_uid2sid(struct winbindd_domain *domain,
365 struct winbindd_cli_state *state);
366void winbindd_gid2sid_async(TALLOC_CTX *mem_ctx, gid_t gid,
367 void (*cont)(void *private_data, bool success, const char *sid),
368 void *private_data);
369enum winbindd_result winbindd_dual_gid2sid(struct winbindd_domain *domain,
370 struct winbindd_cli_state *state);
371
372/* The following definitions come from winbindd/winbindd_locator.c */
373
374void init_locator_child(void);
375struct winbindd_child *locator_child(void);
376void winbindd_dsgetdcname(struct winbindd_cli_state *state);
377
378/* The following definitions come from winbindd/winbindd_misc.c */
379
380void winbindd_check_machine_acct(struct winbindd_cli_state *state);
381enum winbindd_result winbindd_dual_check_machine_acct(struct winbindd_domain *domain,
382 struct winbindd_cli_state *state);
383void winbindd_list_ent(struct winbindd_cli_state *state, enum ent_type type);
384void winbindd_list_trusted_domains(struct winbindd_cli_state *state);
385enum winbindd_result winbindd_dual_list_trusted_domains(struct winbindd_domain *domain,
386 struct winbindd_cli_state *state);
387void winbindd_getdcname(struct winbindd_cli_state *state);
388enum winbindd_result winbindd_dual_getdcname(struct winbindd_domain *domain,
389 struct winbindd_cli_state *state);
390void winbindd_show_sequence(struct winbindd_cli_state *state);
391enum winbindd_result winbindd_dual_show_sequence(struct winbindd_domain *domain,
392 struct winbindd_cli_state *state);
393void winbindd_domain_info(struct winbindd_cli_state *state);
394void winbindd_ping(struct winbindd_cli_state *state);
395void winbindd_info(struct winbindd_cli_state *state);
396void winbindd_interface_version(struct winbindd_cli_state *state);
397void winbindd_domain_name(struct winbindd_cli_state *state);
398void winbindd_netbios_name(struct winbindd_cli_state *state);
399void winbindd_priv_pipe_dir(struct winbindd_cli_state *state);
400
401/* The following definitions come from winbindd/winbindd_ndr.c */
402
403void ndr_print_winbindd_child(struct ndr_print *ndr,
404 const char *name,
405 const struct winbindd_child *r);
406void ndr_print_winbindd_cm_conn(struct ndr_print *ndr,
407 const char *name,
408 const struct winbindd_cm_conn *r);
409void ndr_print_winbindd_methods(struct ndr_print *ndr,
410 const char *name,
411 const struct winbindd_methods *r);
412void ndr_print_winbindd_domain(struct ndr_print *ndr,
413 const char *name,
414 const struct winbindd_domain *r);
415
416/* The following definitions come from winbindd/winbindd_pam.c */
417
418struct winbindd_domain *find_auth_domain(struct winbindd_cli_state *state,
419 const char *domain_name);
420void winbindd_pam_auth(struct winbindd_cli_state *state);
421NTSTATUS winbindd_dual_pam_auth_cached(struct winbindd_domain *domain,
422 struct winbindd_cli_state *state,
423 struct netr_SamInfo3 **info3);
424NTSTATUS winbindd_dual_pam_auth_kerberos(struct winbindd_domain *domain,
425 struct winbindd_cli_state *state,
426 struct netr_SamInfo3 **info3);
427NTSTATUS winbindd_dual_pam_auth_samlogon(struct winbindd_domain *domain,
428 struct winbindd_cli_state *state,
429 struct netr_SamInfo3 **info3);
430enum winbindd_result winbindd_dual_pam_auth(struct winbindd_domain *domain,
431 struct winbindd_cli_state *state) ;
432void winbindd_pam_auth_crap(struct winbindd_cli_state *state);
433enum winbindd_result winbindd_dual_pam_auth_crap(struct winbindd_domain *domain,
434 struct winbindd_cli_state *state) ;
435void winbindd_pam_chauthtok(struct winbindd_cli_state *state);
436enum winbindd_result winbindd_dual_pam_chauthtok(struct winbindd_domain *contact_domain,
437 struct winbindd_cli_state *state);
438void winbindd_pam_logoff(struct winbindd_cli_state *state);
439enum winbindd_result winbindd_dual_pam_logoff(struct winbindd_domain *domain,
440 struct winbindd_cli_state *state) ;
441void winbindd_pam_chng_pswd_auth_crap(struct winbindd_cli_state *state);
442enum winbindd_result winbindd_dual_pam_chng_pswd_auth_crap(struct winbindd_domain *domainSt, struct winbindd_cli_state *state);
443
444/* The following definitions come from winbindd/winbindd_passdb.c */
445
446
447/* The following definitions come from winbindd/winbindd_reconnect.c */
448
449
450/* The following definitions come from winbindd/winbindd_rpc.c */
451
452
453/* The following definitions come from winbindd/winbindd_sid.c */
454
455void winbindd_lookupsid(struct winbindd_cli_state *state);
456void winbindd_lookupname(struct winbindd_cli_state *state);
457void winbindd_lookuprids(struct winbindd_cli_state *state);
458void winbindd_sid_to_uid(struct winbindd_cli_state *state);
459void winbindd_sid_to_gid(struct winbindd_cli_state *state);
460void winbindd_sids_to_unixids(struct winbindd_cli_state *state);
461void winbindd_set_mapping(struct winbindd_cli_state *state);
462void winbindd_set_hwm(struct winbindd_cli_state *state);
463void winbindd_uid_to_sid(struct winbindd_cli_state *state);
464void winbindd_gid_to_sid(struct winbindd_cli_state *state);
465void winbindd_allocate_uid(struct winbindd_cli_state *state);
466enum winbindd_result winbindd_dual_allocate_uid(struct winbindd_domain *domain,
467 struct winbindd_cli_state *state);
468void winbindd_allocate_gid(struct winbindd_cli_state *state);
469enum winbindd_result winbindd_dual_allocate_gid(struct winbindd_domain *domain,
470 struct winbindd_cli_state *state);
471
472/* The following definitions come from winbindd/winbindd_user.c */
473
474enum winbindd_result winbindd_dual_userinfo(struct winbindd_domain *domain,
475 struct winbindd_cli_state *state);
476void winbindd_getpwnam(struct winbindd_cli_state *state);
477void winbindd_getpwuid(struct winbindd_cli_state *state);
478void winbindd_setpwent(struct winbindd_cli_state *state);
479void winbindd_endpwent(struct winbindd_cli_state *state);
480void winbindd_getpwent(struct winbindd_cli_state *state);
481void winbindd_list_users(struct winbindd_cli_state *state);
482
483/* The following definitions come from winbindd/winbindd_util.c */
484
485struct winbindd_domain *domain_list(void);
486void free_domain_list(void);
487void rescan_trusted_domains( void );
488enum winbindd_result init_child_connection(struct winbindd_domain *domain,
489 void (*continuation)(void *private_data,
490 bool success),
491 void *private_data);
492enum winbindd_result winbindd_dual_init_connection(struct winbindd_domain *domain,
493 struct winbindd_cli_state *state);
494bool init_domain_list(void);
495void check_domain_trusted( const char *name, const DOM_SID *user_sid );
496struct winbindd_domain *find_domain_from_name_noinit(const char *domain_name);
497struct winbindd_domain *find_domain_from_name(const char *domain_name);
498struct winbindd_domain *find_domain_from_sid_noinit(const DOM_SID *sid);
499struct winbindd_domain *find_domain_from_sid(const DOM_SID *sid);
500struct winbindd_domain *find_our_domain(void);
501struct winbindd_domain *find_root_domain(void);
502struct winbindd_domain *find_builtin_domain(void);
503struct winbindd_domain *find_lookup_domain_from_sid(const DOM_SID *sid);
504struct winbindd_domain *find_lookup_domain_from_name(const char *domain_name);
505bool winbindd_lookup_sid_by_name(TALLOC_CTX *mem_ctx,
506 enum winbindd_cmd orig_cmd,
507 struct winbindd_domain *domain,
508 const char *domain_name,
509 const char *name, DOM_SID *sid,
510 enum lsa_SidType *type);
511bool winbindd_lookup_name_by_sid(TALLOC_CTX *mem_ctx,
512 struct winbindd_domain *domain,
513 DOM_SID *sid,
514 char **dom_name,
515 char **name,
516 enum lsa_SidType *type);
517void free_getent_state(struct getent_state *state);
518bool parse_domain_user(const char *domuser, fstring domain, fstring user);
519bool parse_domain_user_talloc(TALLOC_CTX *mem_ctx, const char *domuser,
520 char **domain, char **user);
521void parse_add_domuser(void *buf, char *domuser, int *len);
522bool canonicalize_username(fstring username_inout, fstring domain, fstring user);
523void fill_domain_username(fstring name, const char *domain, const char *user, bool can_assume);
524char *fill_domain_username_talloc(TALLOC_CTX *mem_ctx,
525 const char *domain,
526 const char *user,
527 bool can_assume);
528const char *get_winbind_pipe_dir(void) ;
529char *get_winbind_priv_pipe_dir(void) ;
530int open_winbindd_socket(void);
531int open_winbindd_priv_socket(void);
532void close_winbindd_socket(void);
533struct winbindd_cli_state *winbindd_client_list(void);
534void winbindd_add_client(struct winbindd_cli_state *cli);
535void winbindd_remove_client(struct winbindd_cli_state *cli);
536void winbindd_kill_all_clients(void);
537int winbindd_num_clients(void);
538NTSTATUS lookup_usergroups_cached(struct winbindd_domain *domain,
539 TALLOC_CTX *mem_ctx,
540 const DOM_SID *user_sid,
541 uint32 *p_num_groups, DOM_SID **user_sids);
542void ws_name_replace( char *name, char replace );
543void ws_name_return( char *name, char replace );
544bool winbindd_can_contact_domain(struct winbindd_domain *domain);
545bool winbindd_internal_child(struct winbindd_child *child);
546void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain);
547void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain);
548void winbindd_set_locator_kdc_envs(const struct winbindd_domain *domain);
549void winbindd_unset_locator_kdc_env(const struct winbindd_domain *domain);
550
551/* The following definitions come from winbindd/winbindd_wins.c */
552
553void winbindd_wins_byip(struct winbindd_cli_state *state);
554void winbindd_wins_byname(struct winbindd_cli_state *state);
555
556#endif /* _WINBINDD_PROTO_H_ */
Note: See TracBrowser for help on using the repository browser.