summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-01-23 13:07:14 +0100
committerStefan Metzmacher <metze@samba.org>2015-07-08 18:38:22 +0200
commit56c7f885a58a3d69350a90d90687f22a5f9794e2 (patch)
treef814449ea3935cb341ceef8dcb09341012a7b12e
parent70cea2b85c3adbc3f43aa05a3135898361bbed44 (diff)
downloadsamba-56c7f885a58a3d69350a90d90687f22a5f9794e2.tar.gz
librpc/idl: add winbind_GetForestTrustInformation()
This will be used by the netr_DrsGetForestTrustInformation() in order to contact remote domains via winbindd. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--librpc/idl/winbind.idl9
-rw-r--r--source3/winbindd/winbindd_dual_srv.c13
2 files changed, 22 insertions, 0 deletions
diff --git a/librpc/idl/winbind.idl b/librpc/idl/winbind.idl
index 92ac6ed4162..5b6195022a6 100644
--- a/librpc/idl/winbind.idl
+++ b/librpc/idl/winbind.idl
@@ -205,4 +205,13 @@ interface winbind
[in,ref][switch_is(function_code)] netr_CONTROL_DATA_INFORMATION *data,
[out,ref][switch_is(level)] netr_CONTROL_QUERY_INFORMATION *query
);
+
+ /*
+ * do a netr_GetForestTrustInformation() against the right DC
+ */
+ WERROR winbind_GetForestTrustInformation(
+ [in,unique] [string,charset(UTF16)] uint16 *trusted_domain_name,
+ [in] uint32 flags,
+ [out,ref] lsa_ForestTrustInformation **forest_trust_info
+ );
}
diff --git a/source3/winbindd/winbindd_dual_srv.c b/source3/winbindd/winbindd_dual_srv.c
index 468987c048a..66515f1ad15 100644
--- a/source3/winbindd/winbindd_dual_srv.c
+++ b/source3/winbindd/winbindd_dual_srv.c
@@ -1466,3 +1466,16 @@ WERROR _winbind_LogonControl(struct pipes_struct *p,
__func__, r->in.function_code));
return WERR_NOT_SUPPORTED;
}
+
+WERROR _winbind_GetForestTrustInformation(struct pipes_struct *p,
+ struct winbind_GetForestTrustInformation *r)
+{
+ struct winbindd_domain *domain;
+
+ domain = wb_child_domain();
+ if (domain == NULL) {
+ return WERR_NO_SUCH_DOMAIN;
+ }
+
+ return WERR_NOT_SUPPORTED;
+}