Makes kadmin not to ask password if user already has valid tickets. There was a patch merged in heimdal-0.8, but currently proper behavior is broken again. This patch is ugly hack, that blindly mimics the old 0.7.2 behavior without understanding what is actually happening Author: Hai Zaar --- heimdal-1.0.1/lib/kadm5/init_c.c.orig 2007-11-27 16:02:15.000000000 +0200 +++ heimdal-1.0.1/lib/kadm5/init_c.c 2007-11-27 16:04:39.000000000 +0200 @@ -286,9 +286,6 @@ krb5_free_creds(context, out); } } - krb5_cc_close(context, *id); - *id = NULL; - name = krb5_principal_get_comp_string(context, p1, 0); inst = krb5_principal_get_comp_string(context, p1, 1); if(inst == NULL || strcmp(inst, "admin") != 0) { @@ -361,6 +358,11 @@ } } + if(client && default_client) { + krb5_free_principal(context, default_client); + default_client = NULL; + } + /* * No client was specified by the caller, but we have a client