title: Kerberos: kinit on Windows 8.1 leads to empty ticket cache
body: <p>I installed <code>Kerberos for Windows</code> on a new set-up Windows 8.1 machine. </p>
  
  <ul>
  <li>Domain: not set</li>
  <li>Workgroup: WORKGROUP</li>
  </ul>
  
  <p>I edited the <code>krb5.ini</code> file in <code>C:\ProgramData\MIT\Kerberos5</code> directory like this:</p>
  
  <pre><code>[libdefaults]
    default_realm = HSHADOOPCLUSTER.DE
  
  [realms]
    HSHADOOPCLUSTER.DE = {
      admin_server = had-job.server.de
      kdc = had-job.server.de
    }
  </code></pre>
  
  <p>After a restart, I made a <code>kinit -kt daniel.keytab daniel</code> to authenticate me against the Realm via console. Also getting a ticket by user and password via the <code>Kerberos Ticket Manager</code> seems to work fine, as the ticket is shown in the UI.</p>
  
  <p>What I'm wondering about is, that when I call a <code>klist</code> I get an empty list back, which says something like <code>cached tickets: 0</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/kGw0A.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kGw0A.png" alt="enter image description here"></a></p>
  
  <p>This seems not normal to me, as my Ubuntu computer shows valid tickets by <code>klist</code> after a <code>kinit</code>. </p>
  
  <p>What am I doing wrong? Is there some more configuration to do? Sometimes I read about a <code>ksetup</code> tool, but I don't know which settings here are neccessary and which not...</p>
  
  <p>============================================================</p>
  
  <p>After I set </p>
  
  <pre><code>[libdefaults] 
    ... 
    default_ccache_name = FILE:C:/ProgramData/Kerberos/krb5cc_%{uid}
  </code></pre>
  
  <p>in my <code>krb5.conf</code>, the <code>kinit</code> command via console and via Kerberos Ticket Manager creates a file in the specified path. So far everything looks good.</p>
  
  <p>But: The <code>kinit</code> command creates tickets with very different file names (long vs. short), depending if I run the console as "admin" (short name) or not (long name), see the screenshot below. The Kerberos Ticket Manager only shows one of the tickets:</p>
  
  <ul>
  <li>If run as admin:
  
  <ul>
  <li>Shows the ticket I created via admin console</li>
  <li>Creates ticket files with short file names</li>
  </ul></li>
  <li>If run as normal:
  
  <ul>
  <li>Shows the ticket I created via "normal" console</li>
  <li>Creates ticket files with long file names</li>
  </ul></li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/S5aRD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/S5aRD.png" alt="enter image description here"></a></p>
  
  <p>The <code>klist</code> command still doesn't show the cached tickets, independent if console was opened as admin or not.</p>