]> granicus.if.org Git - sudo/commitdiff
Add debugging so we can tell if the krb5 ccache is accessible
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 10 Feb 2008 23:06:19 +0000 (23:06 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 10 Feb 2008 23:06:19 +0000 (23:06 +0000)
ldap.c

diff --git a/ldap.c b/ldap.c
index 418c02c143624fa3527283e8d8f43b629b997ac1..713eba23d762416103a7e60bb74f3eba53aa5571 100644 (file)
--- 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;
            }