summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_shell.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-01-10 21:53:42 +1100
committerStefan Metzmacher <metze@samba.org>2012-01-18 16:23:24 +0100
commit9729bdf89f20998823a1dda9e215647a49ca76a6 (patch)
tree4211e6ee90e5a70c5aac3f7f232675a123825d8c /source3/utils/net_rpc_shell.c
parent34d52532b588497ea0306de59eabdd36c00242bf (diff)
downloadsamba-9729bdf89f20998823a1dda9e215647a49ca76a6.tar.gz
samba-9729bdf89f20998823a1dda9e215647a49ca76a6.tar.bz2
samba-9729bdf89f20998823a1dda9e215647a49ca76a6.zip
s3-utils/net: pass struct ndr_interface_table down
This will allow the target service (as determined from the IDL) to be passed to GSSAPI (rather than the current, incorrect, "cifs"). Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/utils/net_rpc_shell.c')
-rw-r--r--source3/utils/net_rpc_shell.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_rpc_shell.c b/source3/utils/net_rpc_shell.c
index 42dfc48d4a..60860663c6 100644
--- a/source3/utils/net_rpc_shell.c
+++ b/source3/utils/net_rpc_shell.c
@@ -85,7 +85,7 @@ static NTSTATUS net_sh_run(struct net_context *c,
return NT_STATUS_NO_MEMORY;
}
- status = cli_rpc_pipe_open_noauth(ctx->cli, cmd->interface,
+ status = cli_rpc_pipe_open_noauth(ctx->cli, &cmd->table->syntax_id,
&pipe_hnd);
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, _("Could not open pipe: %s\n"),
@@ -197,7 +197,7 @@ static bool net_sh_process(struct net_context *c,
static struct rpc_sh_cmd sh_cmds[6] = {
- { "info", NULL, &ndr_table_samr.syntax_id, rpc_sh_info,
+ { "info", NULL, &ndr_table_samr, rpc_sh_info,
N_("Print information about the domain connected to") },
{ "rights", net_rpc_rights_cmds, 0, NULL,