Skip Menu |
 

Date: Tue, 05 Sep 2006 15:09:07 -0400
To: krb5-bugs@mit.edu
From: Shivakeshav Santi <ss488@cornell.edu>
Subject: Bug in krb5_kt_resolve
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 behaviour ?

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 .....
Thanks. This is fixed in krb5-1.5.2. See ticket #4237.