summaryrefslogtreecommitdiff
path: root/source4/libnet/libnet_rpc.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-01-13 12:52:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:00 -0500
commitb15582ed816f3d477f978976f43b82cfa90bf6dc (patch)
tree01a6d0f6eaa039fe1262945c7dc2320f942e379a /source4/libnet/libnet_rpc.h
parent867ae22a9bf4cfe829e405fcbbb9de994505fc30 (diff)
downloadsamba-b15582ed816f3d477f978976f43b82cfa90bf6dc.tar.gz
r12903: Factor out a new routine libnet_RpcConnectDCInfo, to both connect to
the remote sever, and to query it for domain information. Provide and use this information in the SamSync/Vampire callbacks, to allow a parallel connection to LDAP, if we are talking to AD. This allows us to get at some important attributes not exposed in the old protocol. With this, we are able to do a all-GUI vampire of a AD domain from SWAT, including getting all the SIDs, servicePrincipalNames and the like correct. Andrew Bartlett (This used to be commit 918358cee0b4a1b2c9bc9e68d9d53428a634281e)
Diffstat (limited to 'source4/libnet/libnet_rpc.h')
-rw-r--r--source4/libnet/libnet_rpc.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/source4/libnet/libnet_rpc.h b/source4/libnet/libnet_rpc.h
index 5505e69a09d..ce88462485f 100644
--- a/source4/libnet/libnet_rpc.h
+++ b/source4/libnet/libnet_rpc.h
@@ -45,3 +45,22 @@ struct libnet_RpcConnect {
const char *error_string;
} out;
};
+
+struct libnet_RpcConnectDCInfo {
+ enum libnet_RpcConnect_level level;
+
+ struct {
+ const char *name;
+ const char *binding;
+ const struct dcerpc_interface_table *dcerpc_iface;
+ } in;
+ struct {
+ struct dcerpc_pipe *dcerpc_pipe;
+ struct dom_sid *domain_sid;
+ const char *domain_name;
+
+ /* This parameter only present if the remote server is known to be AD */
+ const char *realm;
+ const char *error_string;
+ } out;
+};