[3776] in Kerberos

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

Re: Kinit Failure with Kerberos Version 4

daemon@ATHENA.MIT.EDU (Shawn Mamros)
Wed Aug 31 09:33:04 1994

To: kerberos@MIT.EDU
Date: Wed, 31 Aug 1994 09:10:45
From: mamros@ftp.com (Shawn Mamros)
Reply-To: mamros@ftp.com

cckeg@amber.indstate.edu (Keith Gladden) writes:
>kinit fails and returns INTK_PROT
>server receives request and sends back response OK
>switch statement in krb_get_in_tkt (/lib/krb/krb_get_in_tkt.c at approximate
>     line #219) falls thru to default action and returns INTK_PROT
>result of switch(pkt_msg_type(rpkt) & ~1) is 2147479044

What does your <prot.h> include file look like?  pkt_msg_type() is a macro
defined in <prot.h>, and there's no way it should be returning a number
that large (it ought to be a single byte!), unless your compiler's doing
something strange (then again, assuming you're using MIT V4 patchlevel 10,
some of the typecasting that goes on here is more than a little strange to
begin with! :-)  You might want to consider changing pkt_msg_type() to
cast to unsigned char rather than unsigned int, and maybe even change
the ~1 to 0xfe - it might work...

-Shawn Mamros
E-mail to: mamros@ftp.com


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