s3-auth Use the common gensec_ntlmssp_update in gensec_ntlmssp3_server
[ira/wip.git] / source3 / utils / net_rpc_shell.c
index 4339dc836c50a3e79f7e916e87ca39b698d44250..60860663c676d6a6dfc69c04ec283ba92b6893d4 100644 (file)
@@ -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"),
@@ -154,7 +154,7 @@ static bool net_sh_process(struct net_context *c,
                return true;
        }
 
-       new_ctx = TALLOC_P(ctx, struct rpc_sh_ctx);
+       new_ctx = talloc(ctx, struct rpc_sh_ctx);
        if (new_ctx == NULL) {
                d_fprintf(stderr, _("talloc failed\n"));
                return false;
@@ -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,
@@ -234,7 +234,7 @@ int net_rpc_shell(struct net_context *c, int argc, const char **argv)
                libnetapi_set_use_kerberos(c->netapi_ctx);
        }
 
-       ctx = TALLOC_P(NULL, struct rpc_sh_ctx);
+       ctx = talloc(NULL, struct rpc_sh_ctx);
        if (ctx == NULL) {
                d_fprintf(stderr, _("talloc failed\n"));
                return -1;