winbind: Query domain from winbind sam_name_to_sid
authorChristof Schmitt <cs@samba.org>
Thu, 14 Mar 2019 17:30:45 +0000 (10:30 -0700)
committerChristof Schmitt <cs@samba.org>
Thu, 18 Apr 2019 17:21:18 +0000 (17:21 +0000)
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>
source3/winbindd/winbindd_samr.c

index 3727e8fa39f79c7ded62baa0270ce55570a309d5..35e7febceff733ef0b5313a47b01580c347fbb2f 100644 (file)
@@ -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;
        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;
        enum lsa_SidType type;
        TALLOC_CTX *tmp_ctx;
        NTSTATUS status;
@@ -615,6 +616,7 @@ again:
                                 domain_name,
                                 name,
                                 flags,
                                 domain_name,
                                 name,
                                 flags,
+                                &dom_name,
                                 &sid,
                                 &type);
 
                                 &sid,
                                 &type);