[krbdev.mit.edu #8809] Do not call getaddrinfo() with invalid hostnames

"Greg Hudson via RT" <[email protected]>
Newsgroups gmane.comp.encryption.kerberos.bugs
Message-ID <[email protected]>
<URL: https://krbdev.mit.edu/rt/Ticket/Display.html?id=8809 >

On Fri May 24 01:37:41 2019, [email protected] wrote:

  gss-krb5 when passed a two component acceptor name passes the second
  component to getaddrinfo() to canonicalize it. While it is often the case
  that the second component of a service name is a hostname, it is not always
  a hostname.

Apologies for letting this sit for a year and then coming back with an
argument, but: does it make sense to use GSS_C_NT_HOSTBASED_SERVICE when the
second part of the name isn't a hostname? RFC 2743 section 4.1 is pretty clear
that the second part is a hostname. Would it be better to import using
GSS_KRB5_NT_PRINCIPAL_NAME?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.