r10691: This gets half-way to wbinfo -n. It acquires an lsa pipe, and does a
[kai/samba.git] / source4 / winbind / wb_async_helpers.h
1 /* 
2    Unix SMB/CIFS implementation.
3
4    SMB composite request interfaces
5
6    Copyright (C) Volker Lendecke 2005
7    
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 2 of the License, or
11    (at your option) any later version.
12    
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17    
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 struct wb_finddcs {
24         struct {
25                 struct messaging_context *msg_ctx;
26                 const char *domain;
27         } in;
28
29         struct {
30                 int num_dcs;
31                 struct nbt_dc_name {
32                         const char *address;
33                         const char *name;
34                 } *dcs;
35         } out;
36 };
37
38 struct wb_get_schannel_creds {
39         struct {
40                 struct cli_credentials *creds;
41                 struct smbcli_tree *tree;
42         } in;
43         struct {
44                 struct dcerpc_pipe *netlogon;
45         } out;
46 };
47
48 struct wb_get_lsa_pipe {
49         struct {
50                 struct event_context *event_ctx;
51                 struct messaging_context *msg_ctx;
52                 const char *domain;
53         } in;
54         struct {
55                 const struct dom_sid *domain_sid;
56                 struct dcerpc_pipe *pipe;
57         } out;
58 };