title: Checking if Kerberos tickets exist in cache
body: <p>I have written some C code to connect to a Kerberized LDAP server. This all works fine, but at present, it currently generates a new TGT every time it connects, rather than using the one (assuming it already exists) in the default credentials cache.</p>
  
  <p>I have looked into using the likes of krb5_cc_resolve and krb5_initialize to get a reference to the cache, but this seems to destroy the cache if it already exists, along with any tickets it holds.</p>
  
  <p>Basically, what I want to know is: is there any way of checking the default credentials cache for existing TGTs without destroying it?</p>