struct tevent_context *ev,
const char *directory,
const char *npipe,
+ enum dcerpc_transport_t transport,
const struct tsocket_address *remote_client_addr,
const char *remote_client_name_in,
const struct tsocket_address *local_server_addr,
state->auth_req.level = 5;
info5 = &state->auth_req.info.info5;
+ info5->transport = transport;
+ SMB_ASSERT(info5->transport == transport); /* Assert no overflow */
+
info5->remote_client_name = remote_client_name_in;
info5->remote_client_addr = tsocket_address_inet_addr_string(remote_client_addr,
state);
#ifndef NPA_TSTREAM_H
#define NPA_TSTREAM_H
+#include <replace.h>
+#include "librpc/rpc/rpc_common.h"
+
struct tevent_req;
struct tevent_context;
struct auth_session_info_transport;
struct tevent_context *ev,
const char *directory,
const char *npipe,
+ enum dcerpc_transport_t transport,
const struct tsocket_address *remote_client_addr,
const char *remote_client_name_in,
const struct tsocket_address *local_server_addr,
const char *NAMED_PIPE_AUTH_MAGIC = "NPAM";
typedef [public] struct {
+ uint8 transport;
[charset(UTF8),string] uint8 *remote_client_name;
[charset(DOS),string] uint8 *remote_client_addr;
uint16 remote_client_port;
ev_ctx,
socket_np_dir,
pipe_name,
+ NCACN_NP,
remote_client_address,
NULL, /* client_name */
local_server_address,
subreq = tstream_npa_connect_send(talloc_tos(), ev,
socket_np_dir,
pipe_name,
+ NCACN_NP,
remote_address,
NULL, /* client_name */
local_address,
ipriv->ntvfs->ctx->event_ctx,
directory,
fname,
+ NCACN_NP,
remote_client_addr,
NULL,
local_server_addr,