mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +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:
parent
e70dbe7d8a
commit
27b01d0aa3
@ -63,7 +63,7 @@ struct tevent_req *tstream_npa_connect_send(TALLOC_CTX *mem_ctx,
|
|||||||
const struct tsocket_address *remote_client_addr,
|
const struct tsocket_address *remote_client_addr,
|
||||||
const char *remote_client_name_in,
|
const char *remote_client_name_in,
|
||||||
const struct tsocket_address *local_server_addr,
|
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)
|
const struct auth_session_info_transport *session_info)
|
||||||
{
|
{
|
||||||
struct tevent_req *req;
|
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->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,
|
info4->local_server_addr = tsocket_address_inet_addr_string(local_server_addr,
|
||||||
state);
|
state);
|
||||||
if (!info4->local_server_addr) {
|
if (!info4->local_server_addr) {
|
||||||
|
@ -32,7 +32,7 @@ struct tevent_req *tstream_npa_connect_send(TALLOC_CTX *mem_ctx,
|
|||||||
const struct tsocket_address *remote_client_addr,
|
const struct tsocket_address *remote_client_addr,
|
||||||
const char *remote_client_name_in,
|
const char *remote_client_name_in,
|
||||||
const struct tsocket_address *local_server_addr,
|
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);
|
const struct auth_session_info_transport *session_info);
|
||||||
int _tstream_npa_connect_recv(struct tevent_req *req,
|
int _tstream_npa_connect_recv(struct tevent_req *req,
|
||||||
int *perrno,
|
int *perrno,
|
||||||
|
Loading…
Reference in New Issue
Block a user