diff options
author | Andrew Bartlett <abartlet@samba.org> | 2017-02-23 14:31:52 +1300 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-03-29 02:37:26 +0200 |
commit | 85536c1ff3513840728ba281de2b6f003e49f227 (patch) | |
tree | 8225ba99a304c6e2c09a05adf14b65dd0b4b537c /auth | |
parent | dc43000c0e15638cb4bc56ef8bbf6a50e681bb5a (diff) | |
download | samba-85536c1ff3513840728ba281de2b6f003e49f227.tar.gz |
auth: Always supply both the remote and local address to the auth subsystem
This ensures that gensec, and then the NTLM auth subsystem under it, always gets the
remote and local address pointers for potential logging.
The local address allows us to know which interface an authentication is on
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 'auth')
-rw-r--r-- | auth/ntlmssp/ntlmssp_server.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/auth/ntlmssp/ntlmssp_server.c b/auth/ntlmssp/ntlmssp_server.c index c17e173b073..1bfd4ccdc24 100644 --- a/auth/ntlmssp/ntlmssp_server.c +++ b/auth/ntlmssp/ntlmssp_server.c @@ -718,6 +718,7 @@ static NTSTATUS ntlmssp_server_check_password(struct gensec_security *gensec_sec user_info->client.domain_name = ntlmssp_state->domain; user_info->workstation_name = ntlmssp_state->client.netbios_name; user_info->remote_host = gensec_get_remote_address(gensec_security); + user_info->local_host = gensec_get_local_address(gensec_security); user_info->service_description = gensec_get_target_service_description(gensec_security); user_info->auth_description = "NTLMSSP"; |