]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Changed the cli_lsa_lookup_sids() function to unpack the domain and user or
authorTim Potter <tpot@samba.org>
Fri, 20 Jul 2001 01:35:00 +0000 (01:35 +0000)
committerTim Potter <tpot@samba.org>
Fri, 20 Jul 2001 01:35:00 +0000 (01:35 +0000)
group using rpcstr_pull_unistr2_fstring rather than pull_ascii_fstring (!!)

source/libsmb/cli_lsarpc.c

index 61afeb7f38a47aca7c22c68a8c2b0da0f966845a..4f015f20f09ad2b50b9d2ea760be8f8b21f7b314 100644 (file)
@@ -268,15 +268,19 @@ uint32 cli_lsa_lookup_sids(struct cli_state *cli, TALLOC_CTX *mem_ctx,
                /* Translate optimised name through domain index array */
 
                if (dom_idx != 0xffffffff) {
-                       pull_ascii_fstring(dom_name, &ref.ref_dom[dom_idx].uni_dom_name);
-                       pull_ascii_fstring(name, &t_names.uni_name[i]);
+
+                       rpcstr_pull_unistr2_fstring(
+                                dom_name, &ref.ref_dom[dom_idx].uni_dom_name);
+                       rpcstr_pull_unistr2_fstring(
+                                name, &t_names.uni_name[i]);
 
                        slprintf(full_name, sizeof(full_name) - 1,
                                 "%s%s%s", dom_name, dom_name[0] ? 
-                                "\\" : "", name);
+                                lp_winbind_separator() : "", name);
 
                        (*names)[i] = talloc_strdup(mem_ctx, full_name);
                        (*types)[i] = t_names.name[i].sid_name_use;
+
                } else {
                        (*names)[i] = NULL;
                        (*types)[i] = SID_NAME_UNKNOWN;