From: Todd C. Miller Date: Sun, 10 Feb 2008 23:06:19 +0000 (+0000) Subject: Add debugging so we can tell if the krb5 ccache is accessible X-Git-Tag: SUDO_1_7_0~195 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f5d9371a3743c952d5b70e7e5f054387800a3c5;p=sudo Add debugging so we can tell if the krb5 ccache is accessible --- diff --git a/ldap.c b/ldap.c index 418c02c14..713eba23d 100644 --- a/ldap.c +++ b/ldap.c @@ -1060,9 +1060,11 @@ sudo_ldap_read_config() value = ldap_conf.krb5_ccname + (ldap_conf.krb5_ccname[4] == ':' ? 5 : 7); if ((fp = fopen(value, "r")) != NULL) { + DPRINTF(("using krb5 credential cache: %s", value), 1); fclose(fp); } else { /* Can't open it, just ignore the entry. */ + DPRINTF(("unable to open krb5 credential cache: %s", value), 1); efree(ldap_conf.krb5_ccname); ldap_conf.krb5_ccname = NULL; }