summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-07-07 03:34:24 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-07-07 03:34:24 +0000
commitd29d29e4a2ecee741bdb3d37be77aeeab48f185f (patch)
tree91af5074818f50ae8030f57dc420706529771344 /source3/rpc_server
parent48316a8c0e6b0ce6d4db966d319517a844194fce (diff)
downloadsamba-d29d29e4a2ecee741bdb3d37be77aeeab48f185f.tar.gz
samba-d29d29e4a2ecee741bdb3d37be77aeeab48f185f.tar.bz2
samba-d29d29e4a2ecee741bdb3d37be77aeeab48f185f.zip
Updates to the 'name -> sid' code:
Correct the 'none mapped' behaviour, (so that it matches Win2k) and add a function to make the SID types appear as text strings in logs/rpcclient. Also, remove a silly case that would cause 'failure' to be 'success'. (Might look at this a bit more in future). Andrew Bartlett (This used to be commit c20d057f8821d13d3de61b319de44db23773516b)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_lsa_nt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index f2f91d2d9a..d072061a5f 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -167,7 +167,7 @@ static void init_lsa_rid2s(DOM_R_REF *ref, DOM_RID2 *rid2,
DEBUG(5, ("init_lsa_rid2s: %s\n", status ? "found" :
"not found"));
- if (status) {
+ if (status && name_type != SID_NAME_UNKNOWN) {
sid_split_rid(&sid, &rid);
dom_idx = init_dom_ref(ref, dom_name, &sid);
(*mapped_count)++;