]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r1967: Fix a couple of krb5-DEBUG-messages.
authorGünther Deschner <gd@samba.org>
Fri, 20 Aug 2004 20:18:28 +0000 (20:18 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:52:25 +0000 (10:52 -0500)
Guenther

source/libads/kerberos.c
source/nsswitch/winbindd_ads.c

index 97b895a2418a976b272512da720c528c2e3beacb..327a76826ef28ae5df641901e4b4c5307bac7a48 100644 (file)
@@ -146,7 +146,8 @@ int ads_kdestroy(const char *cc_name)
        krb5_ccache cc = NULL;
 
        if ((code = krb5_init_context (&ctx))) {
-               DEBUG(3, ("ads_kdestroy: kdb5_init_context rc=%d\n", code));
+               DEBUG(3, ("ads_kdestroy: kdb5_init_context failed: %s\n", 
+                       error_message(code)));
                return code;
        }
   
@@ -157,15 +158,16 @@ int ads_kdestroy(const char *cc_name)
                }
        } else {
                if ((code = krb5_cc_resolve(ctx, cc_name, &cc))) {
-                       DEBUG(3, ("ads_kdestroy: krb5_cc_resolve rc=%d\n",
-                                 code));
+                       DEBUG(3, ("ads_kdestroy: krb5_cc_resolve failed: %s\n",
+                                 error_message(code)));
                        krb5_free_context(ctx);
                        return code;
                }
        }
 
        if ((code = krb5_cc_destroy (ctx, cc))) {
-               DEBUG(3, ("ads_kdestroy: krb5_cc_destroy rc=%d\n", code));
+               DEBUG(3, ("ads_kdestroy: krb5_cc_destroy failed: %s\n", 
+                       error_message(code)));
        }
 
        krb5_free_context (ctx);
index 2d3a9e760cbdbae3bbefae3b127b2227c77a08eb..1392c96fb1e49681731dcb725b959e9ec3f81ebb 100644 (file)
@@ -44,7 +44,7 @@ static ADS_STRUCT *ads_cached_connection(struct winbindd_domain *domain)
 
                /* check for a valid structure */
 
-               DEBUG(7, ("Current tickets expire at %d\n, time is now %d\n",
+               DEBUG(7, ("Current tickets expire at %d, time is now %d\n",
                          (uint32) ads->auth.expire, (uint32) time(NULL)));
                if ( ads->config.realm && (ads->auth.expire > time(NULL))) {
                        return ads;