r20272: Fix for BASE-BENCH-READWRITE from Mathias Dietz <MDIETZ@de.ibm.com>
[Samba/ekacnet.git] / source4 / libnet / libnet.h
blobb3660af702e175957ffdf081a9922cbf20561e79
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 2 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, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 struct libnet_context {
23 /* here we need:
24 * a client env context
25 * a user env context
27 struct cli_credentials *cred;
29 /* samr connection parameters - opened handles and related properties */
30 struct {
31 struct dcerpc_pipe *pipe;
32 const char *name;
33 uint32_t access_mask;
34 struct policy_handle handle;
35 } samr;
37 /* lsa connection parameters - opened handles and related properties */
38 struct {
39 struct dcerpc_pipe *pipe;
40 const char *name;
41 uint32_t access_mask;
42 struct policy_handle handle;
43 } lsa;
45 /* name resolution methods */
46 const char **name_res_methods;
48 struct event_context *event_ctx;
52 #include "lib/ldb/include/ldb.h"
53 #include "libnet/composite.h"
54 #include "libnet/userman.h"
55 #include "libnet/userinfo.h"
56 #include "libnet/libnet_passwd.h"
57 #include "libnet/libnet_time.h"
58 #include "libnet/libnet_rpc.h"
59 #include "libnet/libnet_join.h"
60 #include "libnet/libnet_site.h"
61 #include "libnet/libnet_become_dc.h"
62 #include "libnet/libnet_unbecome_dc.h"
63 #include "libnet/libnet_vampire.h"
64 #include "libnet/libnet_user.h"
65 #include "libnet/libnet_share.h"
66 #include "libnet/libnet_lookup.h"
67 #include "libnet/libnet_domain.h"
68 #include "libnet/libnet_proto.h"