[2417] in Kerberos

home help back first fref pref prev next nref lref last post

krb_get_phost

daemon@ATHENA.MIT.EDU (Marc Horowitz)
Wed Dec 2 20:10:00 1992

To: kerberos@MIT.EDU
Reply-To: Marc Horowitz <marc@MIT.EDU>
Date: Wed, 02 Dec 92 19:51:54 EST
From: Marc Horowitz <marc@MIT.EDU>

v4 has an acknowledged broken convention (look at the comment in the
file) for generating host principal names (e.g. rcmd.athena), and a
function, krb_get_phost(), to enforce it.

v5 has no such convention at all which I know of.  So, I propose the
following convention:

    The first element of the principal is "host", and the second element
    of the principal is the canonical name of the host, with all letters
    in lowercase.  There are only two elements.

This convention is intended for internet-style domain names.  I don't
know enough about OSI or any other system to know if this convention
makes sense or not for them.

I think the file defining this function belongs in lib/os.  I also
think it should return a krb5_principal, not just a string.  Does
anybody have a good idea for a name for the function?
krb5_get_phost() is certainly an option, but I have no idea what
get_phost is supposed to be a mnemonic for, so I don't know if I want
to keep it.  maybe krb5_get_hostprinc() or something similar.

Other comments?

		Marc

home help back first fref pref prev next nref lref last post