krb5_kt_resolve error in kfw 3.0

jaltman@columbia.edu jaltman at columbia.edu
Tue Sep 5 14:49:35 EDT 2006


Correction:  The real cause of the problem is the use of "FILE:"
instead of "FILE" as the inferred prefix when a file path is
specified as "c:\temp\foo" instead of "FILE:c:\temp\foo".

This bug exists in both the keytab and the ccache code.

Jeffrey Altman


Quoting jaltman at columbia.edu:

> This is a real bug on the krb5 trunk.  It is not specific to KFW.
> The problem exists in both krb5_kt_resolve as well as
> krb5_kt_register.
>
> Please file a bug report at krb5-bugs at mit.edu.
>
>
> Quoting Shivakeshav Santi <ss488 at cornell.edu>:
>
> > HI,
> >
> >      I noticed that krb5_kt_resolve function returns
> > KRB5_KT_UNKNOWN_TYPE
> > on a valid call with a correct keytab name . On further
> > investigation I
> > found that the function uses strcmp which is comparing the
> > default prefixes
> > with the prefix (FILE:). But the default prefixes do not have
> > colon.
> >
> > changing the line in ktbase.c from
> strcmp(tlist->ops->prefix,pfx)
> > to
> > strncmp(tlist->ops->prefix,pfx,strlen(tlist->ops->prefix))
> fixed
> > the problem.
> >
> > Did any one notice a similar behaviou ?
> >
> > Thank you for your time.
> >
> >
> > Shivakeshav Santi
> >
> > Programmer Analyst/Senior
> >
> > Cornell Information Technologies
> > 120 Maple Avenue
> > Cornell University
> > Tel :6072551916(O)
> >        6075926806(M)
> >        6073167758(M2)
> >
> > Ability may get you to the top, but only character will keep
> you
> > there .....
> >
> >
> >
> >
> > _______________________________________________
> > krbdev mailing list             krbdev at mit.edu
> > https://mailman.mit.edu/mailman/listinfo/krbdev
> >
>
>
> _______________________________________________
> krbdev mailing list             krbdev at mit.edu
> https://mailman.mit.edu/mailman/listinfo/krbdev
>





More information about the krbdev mailing list