On Sun, 26 May 2013, Christoph Anton Mitterer wrote:
>
> $ kinit
mitt...@CERN.CH
> Password for
mitt...@CERN.CH:
> $ klist -e
> Ticket cache: FILE:/tmp/krb5cc_1000
> Default principal:
mitt...@CERN.CH
>
> Valid starting Expires Service principal
> 2013-05-26 12:04:33 2013-05-27 12:04:19 krbtgt/
CER...@CERN.CH
> Etype (skey, tkt): aes256-cts-hmac-sha1-96, aes256-cts-hmac-sha1-96
>
>
> but:
>
>
> $ ktutil
> ktutil: addent -password -p
mitt...@CERN.CH -k 1 -e
> aes256-cts-hmac-sha1-96
> Password for
mitt...@CERN.CH:
> ktutil: wkt kt
> ktutil: quit
> $ kinit -k -t kt
mitt...@CERN.CH
> kinit: Preauthentication failed while getting initial credentials
The key needed to decrypt the KDC's response to kinit's request depends
not only on the password, but also on the "salt" string stored in the KDB
and potentially a couple other parameters. There are default values which
are probably being used here, but it is not necessarily so.
kinit-with-a-password can adapt to what the KDC tells it, but ktutil must
make a guess when addent -password is called. Because this mechanism (and
really, a few others) are also possible explanations for your observed
behavior, as well as the linked upstream issue, it is hard to say with any
certainty what is going on. More information about what the kerberos
library is doing is necessary for an accurate diagnosis.
Can you run the two kinit commands with KRB5_TRACE set in the environment
to the path to a log file and capture a trace log? (Use a different
KRB5_TRACE setting for each run to get separate logfiles, please.) That
will include the salt sent by the KDC and more details about what the
library is doing.
-Ben Kaduk
--
To UNSUBSCRIBE, email to
debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact
listm...@lists.debian.org