diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-07-07 03:34:24 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-07-07 03:34:24 +0000 |
commit | c20d057f8821d13d3de61b319de44db23773516b (patch) | |
tree | 18c736736017386256c45570710862e916192c7b /source/rpcclient | |
parent | 685a205445f5505c105ea421712c4b0468bbc127 (diff) | |
download | samba-c20d057f8821d13d3de61b319de44db23773516b.tar.gz samba-c20d057f8821d13d3de61b319de44db23773516b.tar.xz samba-c20d057f8821d13d3de61b319de44db23773516b.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
Diffstat (limited to 'source/rpcclient')
-rw-r--r-- | source/rpcclient/cmd_lsarpc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/rpcclient/cmd_lsarpc.c b/source/rpcclient/cmd_lsarpc.c index 511f5643c73..067325c06e6 100644 --- a/source/rpcclient/cmd_lsarpc.c +++ b/source/rpcclient/cmd_lsarpc.c @@ -106,10 +106,9 @@ static NTSTATUS cmd_lsa_lookup_names(struct cli_state *cli, for (i = 0; i < (argc - 1); i++) { fstring sid_str; - sid_to_string(sid_str, &sids[i]); - printf("%s %s (%d)\n", argv[i + 1], sid_str, - types[i]); + printf("%s %s (%s: %d)\n", argv[i + 1], sid_str, + sid_type_lookup(types[i]), types[i]); } done: |