diff options
author | Andrew Bartlett <abartlet@samba.org> | 2017-02-20 12:01:37 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-03-29 02:37:25 +0200 |
commit | eaa59ed34528e77e21c4d03c39fe806d918a898f (patch) | |
tree | b1e9d7dcce2995d9a7d6953f7d64d1bd654bef50 /source4/smbd | |
parent | 3ee82de26df77f97abe1ca70c69f2b7c47421207 (diff) | |
download | samba-eaa59ed34528e77e21c4d03c39fe806d918a898f.tar.gz |
s4-smbd: Remember the original client and server IPs from the SMB connection
We need to know in the RPC server the original address the client came from
so that we can log this with the authentication audit information
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Pair-Programmed-by: Gary Lockyer <gary@catalyst.net.nz>
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Diffstat (limited to 'source4/smbd')
-rw-r--r-- | source4/smbd/service_named_pipe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/smbd/service_named_pipe.c b/source4/smbd/service_named_pipe.c index b75a9faeb75..02758b90ce1 100644 --- a/source4/smbd/service_named_pipe.c +++ b/source4/smbd/service_named_pipe.c @@ -119,6 +119,9 @@ static void named_pipe_accept_done(struct tevent_req *subreq) goto out; } + conn->local_address = talloc_move(conn, &server); + conn->remote_address = talloc_move(conn, &client); + DEBUG(10, ("Accepted npa connection from %s. " "Client: %s (%s). Server: %s (%s)\n", tsocket_address_string(conn->remote_address, tmp_ctx), |