summaryrefslogtreecommitdiff
path: root/source4/utils
diff options
context:
space:
mode:
authorKamen Mazdrashki <kamen.mazdrashki@postpath.com>2010-02-12 06:01:06 +0200
committerAnatoliy Atanasov <anatoliy.atanasov@postpath.com>2010-02-24 14:14:07 +0200
commit9ddb10869c19ac303e85e9e51872bb322834ac0f (patch)
treece2c8bbfd28c4bb398311224d450e549ece2b43c /source4/utils
parente5aae24b3fef0048a33a682989935776f3415dc6 (diff)
downloadsamba-9ddb10869c19ac303e85e9e51872bb322834ac0f.tar.gz
samba-9ddb10869c19ac303e85e9e51872bb322834ac0f.tar.bz2
samba-9ddb10869c19ac303e85e9e51872bb322834ac0f.zip
s4/drs_util: Move DRSUAPI connection data into separate object
We need this so we can create independent DRS connections to different DCs.
Diffstat (limited to 'source4/utils')
-rw-r--r--source4/utils/net/drs/net_drs.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/source4/utils/net/drs/net_drs.h b/source4/utils/net/drs/net_drs.h
index 4aeeb6fa4f..dc5bb8c9d0 100644
--- a/source4/utils/net/drs/net_drs.h
+++ b/source4/utils/net/drs/net_drs.h
@@ -43,14 +43,10 @@
NET_DRS_CHECK_GOTO(_ptr, _label, "Not enough memory!")
-
-/* net drs commands context */
-struct net_drs_context {
- struct net_context *net_ctx;
-
- /* remote DC name supplied from command line */
- const char *dc_name;
-
+/**
+ * DRSUAPI binding context
+ */
+struct net_drs_connection {
/* DRSUAPI connection context */
struct dcerpc_binding *binding;
struct dcerpc_pipe *drs_pipe;
@@ -62,6 +58,20 @@ struct net_drs_context {
/* remote DC DRSUAPI capabilities */
struct drsuapi_DsBindInfo48 info48;
+};
+
+
+/**
+ * net drs commands context
+ */
+struct net_drs_context {
+ struct net_context *net_ctx;
+
+ /* remote DC name supplied from command line */
+ const char *dc_name;
+
+ /* DRSUAPI connection to target DC */
+ struct net_drs_connection *drs_conn;
/* LDAP connection to DC */
struct net_drs_ldap {