From f8a13c7dbc9b0e2246fb52d4a4d5db3b23bd2340 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 3 Mar 2011 16:20:56 +0100 Subject: s3: Use dom_sid_string in _lsa_lookup_sids_internal --- source3/rpc_server/lsa/srv_lsa_nt.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/rpc_server/lsa/srv_lsa_nt.c b/source3/rpc_server/lsa/srv_lsa_nt.c index 70e7ba59aa..a4fc40a58b 100644 --- a/source3/rpc_server/lsa/srv_lsa_nt.c +++ b/source3/rpc_server/lsa/srv_lsa_nt.c @@ -897,7 +897,6 @@ static NTSTATUS _lsa_lookup_sids_internal(struct pipes_struct *p, struct lsa_name_info *name = &name_infos[i]; if (name->type == SID_NAME_UNKNOWN) { - fstring tmp; name->dom_idx = -1; /* Unknown sids should return the string * representation of the SID. Windows 2003 behaves @@ -905,9 +904,7 @@ static NTSTATUS _lsa_lookup_sids_internal(struct pipes_struct *p, * RID as 8 bytes hex, in others it returns the full * SID. We (Jerry/VL) could not figure out which the * hard cases are, so leave it with the SID. */ - name->name = talloc_asprintf(p->mem_ctx, "%s", - sid_to_fstring(tmp, - sids[i])); + name->name = dom_sid_string(p->mem_ctx, sids[i]); if (name->name == NULL) { return NT_STATUS_NO_MEMORY; } -- cgit