winbind: Query domain from winbind rpc name_to_sid
authorChristof Schmitt <cs@samba.org>
Mon, 11 Mar 2019 22:54:21 +0000 (15:54 -0700)
committerChristof Schmitt <cs@samba.org>
Thu, 18 Apr 2019 17:21:17 +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_rpc.c

index 6f7cb07f4e38f8c3ae5290e353c4867b76f70708..81f9f98a4bd435f225d81b71396ab02bebb75755 100644 (file)
@@ -254,6 +254,7 @@ NTSTATUS rpc_name_to_sid(TALLOC_CTX *mem_ctx,
        struct dom_sid *sids = NULL;
        char *full_name = NULL;
        const char *names[1];
+       const char **domains;
        char *mapped_name = NULL;
        NTSTATUS status;
 
@@ -290,7 +291,7 @@ NTSTATUS rpc_name_to_sid(TALLOC_CTX *mem_ctx,
                                         lsa_policy,
                                         1, /* num_names */
                                         names,
-                                        NULL, /* domains */
+                                        &domains,
                                         1, /* level */
                                         &sids,
                                         &types);