1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

tstream_npa: Set local server name in auth requests

Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Samuel Cabrero 2019-09-30 23:33:09 +02:00 committed by Andreas Schneider
parent e70dbe7d8a
commit 27b01d0aa3
2 changed files with 3 additions and 2 deletions

View File

@ -63,7 +63,7 @@ struct tevent_req *tstream_npa_connect_send(TALLOC_CTX *mem_ctx,
const struct tsocket_address *remote_client_addr,
const char *remote_client_name_in,
const struct tsocket_address *local_server_addr,
const char *local_server_name,
const char *local_server_name_in,
const struct auth_session_info_transport *session_info)
{
struct tevent_req *req;
@ -134,6 +134,7 @@ struct tevent_req *tstream_npa_connect_send(TALLOC_CTX *mem_ctx,
info4->remote_client_name = info4->remote_client_addr;
}
info4->local_server_name = local_server_name_in;
info4->local_server_addr = tsocket_address_inet_addr_string(local_server_addr,
state);
if (!info4->local_server_addr) {

View File

@ -32,7 +32,7 @@ struct tevent_req *tstream_npa_connect_send(TALLOC_CTX *mem_ctx,
const struct tsocket_address *remote_client_addr,
const char *remote_client_name_in,
const struct tsocket_address *local_server_addr,
const char *local_server_name,
const char *local_server_name_in,
const struct auth_session_info_transport *session_info);
int _tstream_npa_connect_recv(struct tevent_req *req,
int *perrno,