]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:smbspool: Add debug for finding KRB5CCNAME
authorAndreas Schneider <asn@samba.org>
Thu, 16 May 2019 12:25:00 +0000 (14:25 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 23 May 2019 09:41:17 +0000 (09:41 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13939

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/client/smbspool_krb5_wrapper.c

index e6684fc0d0c95c1e158c4fc7b39d79aaaf33e5b8..2cdcd372ec60671d14787e76a089f63a7712d3e0 100644 (file)
@@ -219,10 +219,14 @@ int main(int argc, char *argv[])
        env = getenv("KRB5CCNAME");
        if (env != NULL && env[0] != 0) {
                snprintf(gen_cc, sizeof(gen_cc), "%s", env);
+               CUPS_SMB_DEBUG("User already set KRB5CCNAME [%s] as ccache",
+                              gen_cc);
 
                goto create_env;
        }
 
+       CUPS_SMB_DEBUG("Trying to guess KRB5CCNAME (FILE, DIR, KEYRING)");
+
        snprintf(gen_cc, sizeof(gen_cc), "/tmp/krb5cc_%d", uid);
 
        rc = lstat(gen_cc, &sb);