[krbdev.mit.edu #7770] git commit

Tom Yu via RT rt-comment at krbdev.mit.edu
Tue Nov 26 17:26:31 EST 2013


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().

(cherry picked from commit 5384f45e728957da20ecf82d8cf567945a2bbf6e)

https://github.com/krb5/krb5/commit/7ce5de08d0273bf70d927f0eb606398a792654a7
Author: Greg Hudson <ghudson at mit.edu>
Committer: Tom Yu <tlyu at mit.edu>
Commit: 7ce5de08d0273bf70d927f0eb606398a792654a7
Branch: krb5-1.12
 src/kadmin/server/ipropd_svc.c   |   22 +++++++---------------
 src/kadmin/server/kadm_rpc_svc.c |   18 ++++++------------
 src/kadmin/server/misc.h         |    9 +++------
 src/kadmin/server/ovsec_kadmd.c  |   29 ++++++++++-------------------
 src/kadmin/server/server_stubs.c |   30 ++++++++++++++++++++++++------
 5 files changed, 50 insertions(+), 58 deletions(-)



More information about the krb5-bugs mailing list