From 4f5d9371a3743c952d5b70e7e5f054387800a3c5 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 10 Feb 2008 23:06:19 +0000 Subject: [PATCH] Add debugging so we can tell if the krb5 ccache is accessible --- ldap.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.40.0