Duplicates in the credentials cache

Victor Sudakov <[email protected]> Thu, 1 Jun 2017 18:04:06 +0700
Newsgroups gmane.comp.encryption.kerberos.heimdal.general
Organization AO "Svyaztransneft", SibPTUS
Message-ID <[email protected]>
Dear Colleagues,

Starting from a clean credentials cache, just after the first kinit:

$ klist
Credentials cache: FILE:/tmp/krb5cc_3001
        Principal: [email protected]

  Issued                Expires               Principal
Jun  1 17:57:33 2017  Jun  8 17:57:33 2017
krbtgt/[email protected]
$

Now if I ssh to a host in a trusted realm several times, my credentials cache
will look like this:

$ klist
Credentials cache: FILE:/tmp/krb5cc_3001
        Principal: [email protected]

  Issued                Expires               Principal
Jun  1 17:57:33 2017  Jun  8 17:57:33 2017  krbtgt/[email protected]
Jun  1 17:58:38 2017  Jun  8 17:57:33 2017  krbtgt/[email protected]
Jun  1 17:58:38 2017  Jun  8 17:57:33 2017  host/[email protected]
Jun  1 17:58:38 2017  Jun  8 17:57:33 2017  krbtgt/[email protected]
Jun  1 17:58:38 2017  Jun  8 17:57:33 2017  host/[email protected]
Jun  1 17:58:40 2017  Jun  8 17:57:33 2017  krbtgt/[email protected]
Jun  1 17:58:38 2017  Jun  8 17:57:33 2017  host/[email protected]
Jun  1 17:58:40 2017  Jun  8 17:57:33 2017  krbtgt/[email protected]
Jun  1 17:58:38 2017  Jun  8 17:57:33 2017  host/[email protected]
Jun  1 17:58:42 2017  Jun  8 17:57:33 2017  krbtgt/[email protected]
Jun  1 17:58:38 2017  Jun  8 17:57:33 2017  host/[email protected]
Jun  1 17:58:42 2017  Jun  8 17:57:33 2017  krbtgt/[email protected]
Jun  1 17:58:38 2017  Jun  8 17:57:33 2017  host/[email protected]
Jun  1 17:58:44 2017  Jun  8 17:57:33 2017  krbtgt/[email protected]
Jun  1 17:58:38 2017  Jun  8 17:57:33 2017  host/[email protected]
Jun  1 17:58:44 2017  Jun  8 17:57:33 2017  krbtgt/[email protected]
Jun  1 17:58:38 2017  Jun  8 17:57:33 2017  host/[email protected]
$

Why do those entries multiply?

(Heimdal 1.5.2, FreeBSD 10.3)

-- 
Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
AS43859