summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2006-07-22 00:53:19 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:18 -0500
commit4e51cf34cf4cbe77957d754952369df3a180f974 (patch)
treed1f0a2eefe3d1ed1668e512cc0954a78d0969146
parent2c82a159ae6a4cc83989f2b453508358db516d67 (diff)
downloadsamba-4e51cf34cf4cbe77957d754952369df3a180f974.tar.gz
samba-4e51cf34cf4cbe77957d754952369df3a180f974.tar.xz
samba-4e51cf34cf4cbe77957d754952369df3a180f974.zip
r17183: LsaLookupSids() shoudl return the string form of a SID when
it cannot be mapped and not the hex of the RID. Who wrote that?
-rw-r--r--source/rpc_server/srv_lsa_nt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/rpc_server/srv_lsa_nt.c b/source/rpc_server/srv_lsa_nt.c
index b4b8876db06..0d8ec751506 100644
--- a/source/rpc_server/srv_lsa_nt.c
+++ b/source/rpc_server/srv_lsa_nt.c
@@ -873,8 +873,9 @@ static NTSTATUS _lsa_lookup_sids_internal(pipes_struct *p,
if (name->type == SID_NAME_UNKNOWN) {
name->dom_idx = -1;
- name->name = talloc_asprintf(p->mem_ctx, "%8.8x",
- name->rid);
+ /* unknown sids should return the string representation of the SID */
+ name->name = talloc_asprintf(p->mem_ctx, "%s",
+ sid_string_static(sids[i]));
if (name->name == NULL) {
return NT_STATUS_NO_MEMORY;
}