summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_lsarpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpcclient/cmd_lsarpc.c')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index 9117ce65597..a6c3280c2fe 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -1469,7 +1469,6 @@ static NTSTATUS cmd_lsa_get_username(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx, int argc,
const char **argv)
{
- struct policy_handle pol;
NTSTATUS status, result;
const char *servername = cli->desthost;
struct lsa_String *account_name = NULL;
@@ -1481,14 +1480,6 @@ static NTSTATUS cmd_lsa_get_username(struct rpc_pipe_client *cli,
return NT_STATUS_OK;
}
- status = rpccli_lsa_open_policy(cli, mem_ctx, true,
- SEC_FLAG_MAXIMUM_ALLOWED,
- &pol);
-
- if (!NT_STATUS_IS_OK(status)) {
- goto done;
- }
-
status = dcerpc_lsa_GetUserName(b, mem_ctx,
servername,
&account_name,
@@ -1508,7 +1499,6 @@ static NTSTATUS cmd_lsa_get_username(struct rpc_pipe_client *cli,
account_name->string, authority_name ? authority_name->string :
"");
- dcerpc_lsa_Close(b, mem_ctx, &pol, &result);
done:
return status;
}