summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2004-08-20 20:18:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:52:25 -0500
commitf1fd211e80732f66ca94604d8132d9f31dc5b717 (patch)
tree120419d05593c012bc28c97df3948926fedd20c3
parent19e949a91ba342ec1de2c01e5bfddf8392cb68b5 (diff)
downloadsamba-f1fd211e80732f66ca94604d8132d9f31dc5b717.tar.gz
samba-f1fd211e80732f66ca94604d8132d9f31dc5b717.tar.bz2
samba-f1fd211e80732f66ca94604d8132d9f31dc5b717.zip
r1967: Fix a couple of krb5-DEBUG-messages.
Guenther (This used to be commit 86a61c86a49a7e4d67e61201458c9b0229fb0825)
-rw-r--r--source3/libads/kerberos.c10
-rw-r--r--source3/nsswitch/winbindd_ads.c2
2 files changed, 7 insertions, 5 deletions
diff --git a/source3/libads/kerberos.c b/source3/libads/kerberos.c
index 97b895a241..327a76826e 100644
--- a/source3/libads/kerberos.c
+++ b/source3/libads/kerberos.c
@@ -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);
diff --git a/source3/nsswitch/winbindd_ads.c b/source3/nsswitch/winbindd_ads.c
index 2d3a9e760c..1392c96fb1 100644
--- a/source3/nsswitch/winbindd_ads.c
+++ b/source3/nsswitch/winbindd_ads.c
@@ -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;