diff options
author | Tim Potter <tpot@samba.org> | 2001-07-20 01:35:00 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2001-07-20 01:35:00 +0000 |
commit | 31fe984d2fc7a2813404a8c25816bb6bb25adfe9 (patch) | |
tree | 3a2d387b20e46b12edb42de3df68aacd4e800ca7 /source3 | |
parent | 8678c6d6f67f9f1f4f68eba4a3dc1bf87f4abc3a (diff) | |
download | samba-31fe984d2fc7a2813404a8c25816bb6bb25adfe9.tar.gz samba-31fe984d2fc7a2813404a8c25816bb6bb25adfe9.tar.bz2 samba-31fe984d2fc7a2813404a8c25816bb6bb25adfe9.zip |
Changed the cli_lsa_lookup_sids() function to unpack the domain and user or
group using rpcstr_pull_unistr2_fstring rather than pull_ascii_fstring (!!)
(This used to be commit 2accab2589d8c3decc489fb6af8d65d437a506e7)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/cli_lsarpc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/libsmb/cli_lsarpc.c b/source3/libsmb/cli_lsarpc.c index 61afeb7f38..4f015f20f0 100644 --- a/source3/libsmb/cli_lsarpc.c +++ b/source3/libsmb/cli_lsarpc.c @@ -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; |