const char *server_name);
NTSTATUS connect_dst_pipe(struct net_context *c, struct cli_state **cli_dst,
struct rpc_pipe_client **pp_pipe_hnd,
- const struct ndr_syntax_id *interface);
+ const struct ndr_interface_table *table);
int net_use_krb_machine_account(struct net_context *c);
int net_use_machine_account(struct net_context *c);
bool net_find_server(struct net_context *c,
/* connect destination PI_SRVSVC */
nt_status = connect_dst_pipe(c, &cli_dst, &srvsvc_pipe,
- &ndr_table_srvsvc.syntax_id);
+ &ndr_table_srvsvc);
if (!NT_STATUS_IS_OK(nt_status))
return nt_status;
/* connect destination PI_SRVSVC */
nt_status = connect_dst_pipe(c, &cli_dst, &srvsvc_pipe,
- &ndr_table_srvsvc.syntax_id);
+ &ndr_table_srvsvc);
if (!NT_STATUS_IS_OK(nt_status))
return nt_status;
/* connect destination PI_SPOOLSS */
nt_status = connect_dst_pipe(c, &cli_dst, &pipe_hnd_dst,
- &ndr_table_spoolss.syntax_id);
+ &ndr_table_spoolss);
if (!NT_STATUS_IS_OK(nt_status)) {
return nt_status;
}
/* connect destination PI_SPOOLSS */
nt_status = connect_dst_pipe(c, &cli_dst, &pipe_hnd_dst,
- &ndr_table_spoolss.syntax_id);
+ &ndr_table_spoolss);
if (!NT_STATUS_IS_OK(nt_status)) {
return nt_status;
}
DEBUG(3,("copying printer-drivers\n"));
nt_status = connect_dst_pipe(c, &cli_dst, &pipe_hnd_dst,
- &ndr_table_spoolss.syntax_id);
+ &ndr_table_spoolss);
if (!NT_STATUS_IS_OK(nt_status)) {
return nt_status;
}
/* connect destination PI_SPOOLSS */
nt_status = connect_dst_pipe(c, &cli_dst, &pipe_hnd_dst,
- &ndr_table_spoolss.syntax_id);
+ &ndr_table_spoolss);
if (!NT_STATUS_IS_OK(nt_status)) {
return nt_status;
}
/* connect destination PI_SPOOLSS */
nt_status = connect_dst_pipe(c, &cli_dst, &pipe_hnd_dst,
- &ndr_table_spoolss.syntax_id);
+ &ndr_table_spoolss);
if (!NT_STATUS_IS_OK(nt_status)) {
return nt_status;
}
**/
NTSTATUS connect_dst_pipe(struct net_context *c, struct cli_state **cli_dst,
struct rpc_pipe_client **pp_pipe_hnd,
- const struct ndr_syntax_id *interface)
+ const struct ndr_interface_table *table)
{
NTSTATUS nt_status;
char *server_name = SMB_STRDUP("127.0.0.1");
return nt_status;
}
- nt_status = cli_rpc_pipe_open_noauth(cli_tmp, interface,
+ nt_status = cli_rpc_pipe_open_noauth(cli_tmp, &table->syntax_id,
&pipe_hnd);
if (!NT_STATUS_IS_OK(nt_status)) {
DEBUG(0, ("couldn't not initialize pipe\n"));