s4:torture/rpc/samba3rpc.c: make use of dcerpc_binding_handle stubs
[Samba/nascimento.git] / source4 / libnet / libnet.h
blobc1a2e3708bb03bdbca64c145508cf59f1672955d
1 /*
2 Unix SMB/CIFS implementation.
4 Copyright (C) Stefan Metzmacher 2004
5 Copyright (C) Rafal Szczesniak 2005-2006
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "librpc/gen_ndr/misc.h"
23 struct libnet_context {
24 /* here we need:
25 * a client env context
26 * a user env context
28 struct cli_credentials *cred;
30 /* samr connection parameters - opened handles and related properties */
31 struct {
32 struct dcerpc_pipe *pipe;
33 struct dcerpc_binding_handle *samr_handle;
34 const char *name;
35 struct dom_sid *sid;
36 uint32_t access_mask;
37 struct policy_handle handle;
38 struct policy_handle connect_handle;
39 int buf_size;
40 } samr;
42 /* lsa connection parameters - opened handles and related properties */
43 struct {
44 struct dcerpc_pipe *pipe;
45 struct dcerpc_binding_handle *lsa_handle;
46 const char *name;
47 uint32_t access_mask;
48 struct policy_handle handle;
49 } lsa;
51 /* name resolution methods */
52 struct resolve_context *resolve_ctx;
54 struct tevent_context *event_ctx;
56 struct loadparm_context *lp_ctx;
60 #include "lib/ldb/include/ldb.h"
61 #include "libnet/composite.h"
62 #include "libnet/userman.h"
63 #include "libnet/userinfo.h"
64 #include "libnet/groupinfo.h"
65 #include "libnet/groupman.h"
66 #include "libnet/libnet_passwd.h"
67 #include "libnet/libnet_time.h"
68 #include "libnet/libnet_rpc.h"
69 #include "libnet/libnet_join.h"
70 #include "libnet/libnet_site.h"
71 #include "libnet/libnet_become_dc.h"
72 #include "libnet/libnet_unbecome_dc.h"
73 #include "libnet/libnet_samsync.h"
74 #include "libnet/libnet_vampire.h"
75 #include "libnet/libnet_user.h"
76 #include "libnet/libnet_group.h"
77 #include "libnet/libnet_share.h"
78 #include "libnet/libnet_lookup.h"
79 #include "libnet/libnet_domain.h"
80 #include "libnet/libnet_export_keytab.h"
81 #include "libnet/libnet_proto.h"