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.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index 67efbb1ff7..1b733d25c3 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -80,8 +80,6 @@ static NTSTATUS cmd_lsa_lookup_names(struct cli_state *cli,
DOM_SID *sids;
uint32 *types;
int num_names, i;
- fstring name, domain;
- const char *name2, *domain2;
if (argc == 1) {
printf("Usage: %s [name1 [name2 [...]]]\n", argv[0]);
@@ -95,15 +93,8 @@ static NTSTATUS cmd_lsa_lookup_names(struct cli_state *cli,
if (!NT_STATUS_IS_OK(result))
goto done;
- /* Lookup the names */
-
- split_domain_name(argv[1], domain, name);
-
- name2 = talloc_strdup(mem_ctx, name);
- domain2 = talloc_strdup(mem_ctx, domain);
-
result = cli_lsa_lookup_names(cli, mem_ctx, &pol, argc - 1,
- &domain2, &name2, &sids,
+ (const char**)(argv + 1), &sids,
&types, &num_names);
if (!NT_STATUS_IS_OK(result))