summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2019-03-14 10:30:45 -0700
committerChristof Schmitt <cs@samba.org>2019-04-18 17:21:18 +0000
commit32e3f0663be39cf4a81639c818fc88e959791673 (patch)
treed1b040c889df1eb0e0f694f7738bab73ad629181 /source3/winbindd
parent562551c0886bdef1f97059e16d375c2e97452b45 (diff)
downloadsamba-32e3f0663be39cf4a81639c818fc88e959791673.tar.gz
winbind: Query domain from winbind sam_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>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_samr.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_samr.c b/source3/winbindd/winbindd_samr.c
index 3727e8fa39f..35e7febceff 100644
--- a/source3/winbindd/winbindd_samr.c
+++ b/source3/winbindd/winbindd_samr.c
@@ -587,6 +587,7 @@ static NTSTATUS sam_name_to_sid(struct winbindd_domain *domain,
struct rpc_pipe_client *lsa_pipe;
struct policy_handle lsa_policy = { 0 };
struct dom_sid sid;
+ const char *dom_name;
enum lsa_SidType type;
TALLOC_CTX *tmp_ctx;
NTSTATUS status;
@@ -615,6 +616,7 @@ again:
domain_name,
name,
flags,
+ &dom_name,
&sid,
&type);