[2419] in Kerberos
Re: krb_get_phost
daemon@ATHENA.MIT.EDU (Marc Horowitz)
Wed Dec 2 21:01:44 1992
To: Clifford Neuman <bcn@ISI.EDU>
Cc: kerberos@MIT.EDU
In-Reply-To: Your message of Wed, 02 Dec 92 17:27:06 -0800.
Reply-To: Marc Horowitz <marc@MIT.EDU>
Date: Wed, 02 Dec 92 20:45:44 EST
From: Marc Horowitz <marc@MIT.EDU>
>> What you describe already is the convention for V5. If you look at
>> the rlogin program, you will see that it is followed.
Maybe krlogin follows it, but krlogind doesn't seem to:
strcpy(srv_name, "host/");
gethostname(def_host, 100);
strcat(srv_name, def_host);
if (status = krb5_parse_name(srv_name, &server)) {
syslog(LOG_ERR, "parse server name %s: %s", "host",
error_message(status));
exit(1);
}
gethostname() doesn't necessarily return a canonical name, and it
certainly doesn't necessarily do so in lowercase. Methinks we need an
abstraction here.
Marc