[krbdev.mit.edu #8467] Date/hostname not logged for some log messages

David Shrimpton via RT rt-comment at krbdev.mit.edu
Wed Jul 27 19:03:07 EDT 2016


Hi,

Following log extract shows date and hostname not logged for a
log message , which is inconsistent with the logging of date/time
for other messages and makes the message appear as a continuation
of previous message. 

This was on 1.14.3 on EL6 linux .  Logging is set in krb5.conf
to FILE:


Note: the kdc.conf has kdc_tcp_ports = ""
to disable tcp . 

On startup krb5kdc logs:

Jul 27 16:12:38 myhostname krb5kdc[26223](info): setting up network...
Jul 27 16:12:38 myhostname krb5kdc[26223](info): listening on fd 7: udp 0.0.0.0.88 (pktinfo)
krb5kdc: Address family not supported by protocol - Cannot create TCP server socket on ::.88
Jul 27 16:12:38 myhostname krb5kdc[26223](info): set up 1 sockets
Jul 27 16:12:38 myhostname krb5kdc[26226](info): commencing operation

strace shows a call to socket to match the "::.88" log entry:

socket(PF_INET6, SOCK_DGRAM, IPPROTO_IP) = -1 EAFNOSUPPORT (Address family not supported by protocol)
write(3, "krb5kdc: Address family not supp"..., 93) = 93



There is no time and date on the "krb5kdc: Address family not supported ..."
log line

   strace shows:

   write(3, "krb5kdc: Address family not supp"..., 93) 

   v earlier log entry 

   write(3, "Jul 27 16:11:31

   I think this is intended to be a separate log line and not part of the previous line
   and should have time and date and hostname.




-- 
David Shrimpton 
Information Technology Services | The University of Queensland



More information about the krb5-bugs mailing list