summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-02-14 13:29:18 +0100
committerGünther Deschner <gd@samba.org>2008-02-14 13:53:27 +0100
commita75d6543a00fbdc52f2f783377737c4dc6f28569 (patch)
tree026c3a4b259883fcb2f75897281760db7928cf87 /source3
parenta63b27bec0da21b319133ade40303b4dce46412a (diff)
downloadsamba-a75d6543a00fbdc52f2f783377737c4dc6f28569.tar.gz
samba-a75d6543a00fbdc52f2f783377737c4dc6f28569.tar.bz2
samba-a75d6543a00fbdc52f2f783377737c4dc6f28569.zip
Use rpccli_lsa_LookupPrivValue() in rpcclient.
Guenther (This used to be commit c15243dd1faaa01cd05d6e2f6ae873cc32097397)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index bd9d3c03cd..69585eea57 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -841,7 +841,8 @@ static NTSTATUS cmd_lsa_lookup_priv_value(struct rpc_pipe_client *cli,
{
POLICY_HND pol;
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
- LUID luid;
+ struct lsa_LUID luid;
+ struct lsa_String name;
if (argc != 2 ) {
printf("Usage: %s name\n", argv[0]);
@@ -855,7 +856,12 @@ static NTSTATUS cmd_lsa_lookup_priv_value(struct rpc_pipe_client *cli,
if (!NT_STATUS_IS_OK(result))
goto done;
- result = rpccli_lsa_lookup_priv_value(cli, mem_ctx, &pol, argv[1], &luid);
+ init_lsa_String(&name, argv[1]);
+
+ result = rpccli_lsa_LookupPrivValue(cli, mem_ctx,
+ &pol,
+ &name,
+ &luid);
if (!NT_STATUS_IS_OK(result))
goto done;