From b02c46bef944712834045399c883ea14f45bde94 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 8 Nov 2009 19:37:26 +0100 Subject: Revert "s3: Make run_rpc_command take strings instead of a ndr_interface_table" This reverts commit 53f2a1595e76db9fe1b42db65b51895b73365993. --- source3/utils/net_rpc_shell.c | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) (limited to 'source3/utils/net_rpc_shell.c') diff --git a/source3/utils/net_rpc_shell.c b/source3/utils/net_rpc_shell.c index 5b94fac145c..5e0f1503712 100644 --- a/source3/utils/net_rpc_shell.c +++ b/source3/utils/net_rpc_shell.c @@ -70,21 +70,16 @@ static NTSTATUS net_sh_run(struct net_context *c, { TALLOC_CTX *mem_ctx; struct rpc_pipe_client *pipe_hnd; - struct ndr_syntax_id syntax; NTSTATUS status; - if (!ndr_syntax_from_string(cmd->interface, cmd->interface_version, - &syntax)) { - return NT_STATUS_INVALID_PARAMETER; - } - mem_ctx = talloc_new(ctx); if (mem_ctx == NULL) { d_fprintf(stderr, _("talloc_new failed\n")); return NT_STATUS_NO_MEMORY; } - status = cli_rpc_pipe_open_noauth(ctx->cli, &syntax, &pipe_hnd); + 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"), nt_errstr(status)); @@ -195,22 +190,22 @@ static bool net_sh_process(struct net_context *c, static struct rpc_sh_cmd sh_cmds[6] = { - { "info", NULL, NDR_SAMR_UUID, NDR_SAMR_VERSION, rpc_sh_info, + { "info", NULL, &ndr_table_samr.syntax_id, rpc_sh_info, N_("Print information about the domain connected to") }, - { "rights", net_rpc_rights_cmds, NULL, 0, NULL, + { "rights", net_rpc_rights_cmds, 0, NULL, N_("List/Grant/Revoke user rights") }, - { "share", net_rpc_share_cmds, NULL, 0, NULL, + { "share", net_rpc_share_cmds, 0, NULL, N_("List/Add/Remove etc shares") }, - { "user", net_rpc_user_cmds, NULL, 0, NULL, + { "user", net_rpc_user_cmds, 0, NULL, N_("List/Add/Remove user info") }, - { "account", net_rpc_acct_cmds, NULL, 0, NULL, + { "account", net_rpc_acct_cmds, 0, NULL, N_("Show/Change account policy settings") }, - { NULL, NULL, NULL, 0, NULL, NULL } + { NULL, NULL, 0, NULL, NULL } }; int net_rpc_shell(struct net_context *c, int argc, const char **argv) -- cgit