[6505] in Kerberos
Re: maximum principal length?
daemon@ATHENA.MIT.EDU (Kurt J. Lidl)
Sat Jan 20 00:34:41 1996
To: Mark London <MRL@PFC.MIT.EDU>
Cc: KERBEROS@MIT.EDU
In-Reply-To: Your message of "Fri, 19 Jan 1996 14:46:10 EST."
<960119144610.21842c75@PFC.MIT.EDU>
Date: Sat, 20 Jan 1996 00:01:12 -0500
From: "Kurt J. Lidl" <lidl@va.pubnix.com>
>I've searched the web without luck in trying to find out the answer to this
>question: What is the maximum principal length? As a second question, where
>can I find a web page which talks about this? Thanks.
Under kerberos V4, you should look in the krb.h file.
Here's the relevant piece:
/* The maximum sizes for aname, realm, sname, and instance +1 */
#define ANAME_SZ 40
#define REALM_SZ 40
#define SNAME_SZ 40
#define INST_SZ 40
/* include space for '.' and '@' */
#define MAX_K_NAME_SZ (ANAME_SZ + INST_SZ + REALM_SZ + 2)
#define KKEY_SZ 100
#define VERSION_SZ 1
#define MSG_TYPE_SZ 1
#define DATE_SZ 26 /* RTI date output */
-Kurt