summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2019-03-11 15:53:51 -0700
committerChristof Schmitt <cs@samba.org>2019-04-18 17:21:17 +0000
commit60b0e91237179b8782c4bd83b9579f51d5af2928 (patch)
tree11b2de5b56cc67edf89f0fc374565bfde53a9b2b
parentd006c769a9cad275339b18b08e13d48acb29d7fc (diff)
downloadsamba-60b0e91237179b8782c4bd83b9579f51d5af2928.tar.gz
winbind: Query domain from msrpc name_to_sid
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13831 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
-rw-r--r--source3/winbindd/winbindd_msrpc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_msrpc.c b/source3/winbindd/winbindd_msrpc.c
index 203fbc6b56a..69a049556dd 100644
--- a/source3/winbindd/winbindd_msrpc.c
+++ b/source3/winbindd/winbindd_msrpc.c
@@ -226,6 +226,7 @@ static NTSTATUS msrpc_name_to_sid(struct winbindd_domain *domain,
enum lsa_SidType *types = NULL;
char *full_name = NULL;
const char *names[1];
+ const char **domains;
NTSTATUS name_map_status = NT_STATUS_UNSUCCESSFUL;
char *mapped_name = NULL;
@@ -260,7 +261,7 @@ static NTSTATUS msrpc_name_to_sid(struct winbindd_domain *domain,
names[0] = full_name;
result = winbindd_lookup_names(mem_ctx, domain, 1,
- names, NULL,
+ names, &domains,
&sids, &types);
if (!NT_STATUS_IS_OK(result))
return result;