Use rpccli_lsa_LookupPrivValue() in rpcclient.
authorGünther Deschner <gd@samba.org>
Thu, 14 Feb 2008 12:29:18 +0000 (13:29 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 14 Feb 2008 12:53:27 +0000 (13:53 +0100)
Guenther

source/rpcclient/cmd_lsarpc.c

index bd9d3c03cdd786d0e15c56f1ea71f17d6f730f95..69585eea575eddf402b55f70dd3fa5d789ce5575 100644 (file)
@@ -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;