summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_shell.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-07-20 18:40:31 +0200
committerVolker Lendecke <vl@samba.org>2008-07-21 14:36:28 +0200
commitd86ff599892608cf739c96e8add9b6ff9f9e5e43 (patch)
tree752aecc813238ae0f3772054104cd003e597d87a /source3/utils/net_rpc_shell.c
parentf23567fcb9d626c29603430a9cedd899e56ded32 (diff)
downloadsamba-d86ff599892608cf739c96e8add9b6ff9f9e5e43.tar.gz
samba-d86ff599892608cf739c96e8add9b6ff9f9e5e43.tar.bz2
samba-d86ff599892608cf739c96e8add9b6ff9f9e5e43.zip
Refactoring: net_sh_run uses ndr_syntax_id instead of pipe_idx
(This used to be commit 85c8363d5179e7053adc05e8abce2fb26cf9b968)
Diffstat (limited to 'source3/utils/net_rpc_shell.c')
-rw-r--r--source3/utils/net_rpc_shell.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/utils/net_rpc_shell.c b/source3/utils/net_rpc_shell.c
index 6abdb03c48..c6051dc976 100644
--- a/source3/utils/net_rpc_shell.c
+++ b/source3/utils/net_rpc_shell.c
@@ -78,8 +78,7 @@ static NTSTATUS net_sh_run(struct net_context *c,
return NT_STATUS_NO_MEMORY;
}
- status = cli_rpc_pipe_open_noauth(ctx->cli,
- cli_get_iface(cmd->pipe_idx),
+ status = cli_rpc_pipe_open_noauth(ctx->cli, cmd->interface,
&pipe_hnd);
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, "Could not open pipe: %s\n",
@@ -189,7 +188,7 @@ static bool net_sh_process(struct net_context *c,
static struct rpc_sh_cmd sh_cmds[6] = {
- { "info", NULL, PI_SAMR, rpc_sh_info,
+ { "info", NULL, &ndr_table_samr.syntax_id, rpc_sh_info,
"Print information about the domain connected to" },
{ "rights", net_rpc_rights_cmds, 0, NULL,