summaryrefslogtreecommitdiffstats
path: root/source3/rpcclient/cmd_lsarpc.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2014-01-13 10:18:02 +0100
committerGünther Deschner <gd@samba.org>2014-01-16 16:22:52 +0100
commit7d201c096e215dd356ee94f19d137f4b24b56094 (patch)
tree255aeceef1aeca4594f60c7c599502c2aa982c21 /source3/rpcclient/cmd_lsarpc.c
parentdd42daa98dd0ba86116396a64d5e27826ffe2b49 (diff)
downloadsamba-7d201c096e215dd356ee94f19d137f4b24b56094.tar.gz
samba-7d201c096e215dd356ee94f19d137f4b24b56094.tar.xz
samba-7d201c096e215dd356ee94f19d137f4b24b56094.zip
s3:rpcclient: remove unused code from cmd_lsa_get_username()
lsa_GetUserName() doesn't require a policy handle. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
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 9117ce6559..a6c3280c2f 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;
}