s4-drs: Add DRSUAPI_DRS_NONGC_RO_REP bit to DRS_OPTIONS
[Samba/fernandojvsilva.git] / source4 / libnet / libnet_rpc.h
blobfb2628409f5916e74339d508496b912febcd9584
1 /*
2 Unix SMB/CIFS implementation.
4 Copyright (C) Stefan Metzmacher 2004
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "librpc/rpc/dcerpc.h"
24 * struct definition for connecting to a dcerpc inferface
27 enum libnet_RpcConnect_level {
28 LIBNET_RPC_CONNECT_SERVER, /* connect to a standalone rpc server */
29 LIBNET_RPC_CONNECT_SERVER_ADDRESS, /* connect to a standalone rpc server,
30 knowing both name and address */
31 LIBNET_RPC_CONNECT_PDC, /* connect to a domain pdc (resolves domain
32 name to a pdc address before connecting) */
33 LIBNET_RPC_CONNECT_DC, /* connect to any DC (resolves domain
34 name to a DC address before connecting) */
35 LIBNET_RPC_CONNECT_BINDING, /* specified binding string */
36 LIBNET_RPC_CONNECT_DC_INFO /* connect to a DC and provide basic domain
37 information (name, realm, sid, guid) */
40 struct libnet_RpcConnect {
41 enum libnet_RpcConnect_level level;
43 struct {
44 const char *name;
45 const char *address;
46 const char *binding;
47 const struct ndr_interface_table *dcerpc_iface;
48 int dcerpc_flags;
49 } in;
50 struct {
51 struct dcerpc_pipe *dcerpc_pipe;
53 /* parameters provided in LIBNET_RPC_CONNECT_DC_INFO level, null otherwise */
54 const char *domain_name;
55 struct dom_sid *domain_sid;
56 const char *realm; /* these parameters are only present if */
57 struct GUID *guid; /* the remote server is known to be AD */
59 const char *error_string;
60 } out;
65 * Monitor messages sent from libnet_rpc.c functions
68 struct msg_net_rpc_connect {
69 const char *host;
70 const char *domain_name;
71 const char *endpoint;
72 enum dcerpc_transport_t transport;