]> git.ipfire.org Git - thirdparty/krb5.git/commit
Correctly log IPv6 addresses in kadmind
authorGreg Hudson <ghudson@mit.edu>
Mon, 25 Nov 2013 16:46:47 +0000 (11:46 -0500)
committerGreg Hudson <ghudson@mit.edu>
Mon, 25 Nov 2013 22:03:09 +0000 (17:03 -0500)
commit5384f45e728957da20ecf82d8cf567945a2bbf6e
tree263f24b16799eb1391b95879317fd21ef4e2e1f3
parent4c57a429760a3b3aa89938a13708742675f9548b
Correctly log IPv6 addresses in kadmind

Define client_addr() in server_stubs.c and use it consistently in that
file and ipropd_svc.c to get the client address from a transport
handle.  In it, call getpeername() on the client socket and use
inet_ntop() on the result, instead of using inet_ntoa() on the IPv4
socket address.  Provide a log_badauth2 callback to GSSRPC, so that we
get a transport handle instead of an IPv4 socket address, and use
client_addr() within it instead of inet_ntoa().

ticket: 7770
target_version: 1.12
tags: pullup
src/kadmin/server/ipropd_svc.c
src/kadmin/server/kadm_rpc_svc.c
src/kadmin/server/misc.h
src/kadmin/server/ovsec_kadmd.c
src/kadmin/server/server_stubs.c