summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-06 19:31:00 +0100
committerGünther Deschner <gd@samba.org>2008-02-08 22:44:28 +0100
commitba00160eb865c93b5de3dc105260dda1fe2c952b (patch)
tree7bef1882847b82fe17028c5c158db030255350e0
parent02abf612c8d7d6c9672df1f8ce02659737dc9254 (diff)
downloadsamba-ba00160eb865c93b5de3dc105260dda1fe2c952b.tar.gz
samba-ba00160eb865c93b5de3dc105260dda1fe2c952b.tar.bz2
samba-ba00160eb865c93b5de3dc105260dda1fe2c952b.zip
Use rpccli_lsa_OpenAccount() in rpcclient.
Guenther (This used to be commit 04d7977905d57dc2a45c221eee7f9edf659dbdf4)
-rw-r--r--source3/rpcclient/cmd_lsarpc.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index fb8ca76d3b..f71a6d6263 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -632,7 +632,7 @@ static NTSTATUS cmd_lsa_enum_privsaccounts(struct rpc_pipe_client *cli,
const char **argv)
{
POLICY_HND dom_pol;
- POLICY_HND user_pol;
+ POLICY_HND *user_pol = NULL;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
uint32 access_desired = 0x000f000f;
@@ -657,12 +657,16 @@ static NTSTATUS cmd_lsa_enum_privsaccounts(struct rpc_pipe_client *cli,
if (!NT_STATUS_IS_OK(result))
goto done;
- result = rpccli_lsa_open_account(cli, mem_ctx, &dom_pol, &sid, access_desired, &user_pol);
+ result = rpccli_lsa_OpenAccount(cli, mem_ctx,
+ &dom_pol,
+ &sid,
+ access_desired,
+ &user_pol);
if (!NT_STATUS_IS_OK(result))
goto done;
- result = rpccli_lsa_enum_privsaccount(cli, mem_ctx, &user_pol, &count, &set);
+ result = rpccli_lsa_enum_privsaccount(cli, mem_ctx, user_pol, &count, &set);
if (!NT_STATUS_IS_OK(result))
goto done;