diff options
author | Günther Deschner <gd@samba.org> | 2008-02-14 15:09:21 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2008-02-14 15:09:21 +0100 |
commit | 7b5ef3569f081e29890594b533ee0062deec0b15 (patch) | |
tree | 45f1ef63c82f40dea53cceccd47e328afa67fa1a /source3/rpcclient | |
parent | 235efc0ede0a4951f4f6c4714e1bfd123d0816bd (diff) | |
download | samba-7b5ef3569f081e29890594b533ee0062deec0b15.tar.gz samba-7b5ef3569f081e29890594b533ee0062deec0b15.tar.bz2 samba-7b5ef3569f081e29890594b533ee0062deec0b15.zip |
Use rpccli_lsa_EnumAccountRights in net and rpcclient.
Guenther
(This used to be commit 6e9195329d9f2b26c959f64485902c032f140ec8)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/cmd_lsarpc.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c index 079a914830..d7f5e55df4 100644 --- a/source3/rpcclient/cmd_lsarpc.c +++ b/source3/rpcclient/cmd_lsarpc.c @@ -713,10 +713,8 @@ static NTSTATUS cmd_lsa_enum_acct_rights(struct rpc_pipe_client *cli, { POLICY_HND dom_pol; NTSTATUS result = NT_STATUS_UNSUCCESSFUL; - DOM_SID sid; - uint32 count; - char **rights; + struct lsa_RightSet rights; int i; @@ -736,16 +734,19 @@ static NTSTATUS cmd_lsa_enum_acct_rights(struct rpc_pipe_client *cli, if (!NT_STATUS_IS_OK(result)) goto done; - result = rpccli_lsa_enum_account_rights(cli, mem_ctx, &dom_pol, &sid, &count, &rights); + result = rpccli_lsa_EnumAccountRights(cli, mem_ctx, + &dom_pol, + &sid, + &rights); if (!NT_STATUS_IS_OK(result)) goto done; - printf("found %d privileges for SID %s\n", count, + printf("found %d privileges for SID %s\n", rights.count, sid_string_tos(&sid)); - for (i = 0; i < count; i++) { - printf("\t%s\n", rights[i]); + for (i = 0; i < rights.count; i++) { + printf("\t%s\n", rights.names[i].string); } rpccli_lsa_Close(cli, mem_ctx, &dom_pol); |