From 56c7f885a58a3d69350a90d90687f22a5f9794e2 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 23 Jan 2015 13:07:14 +0100 Subject: [PATCH] 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 Reviewed-by: Andrew Bartlett --- librpc/idl/winbind.idl | 9 +++++++++ source3/winbindd/winbindd_dual_srv.c | 13 +++++++++++++ 2 files changed, 22 insertions(+) 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; +} -- 2.11.4.GIT