mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
r1967: Fix a couple of krb5-DEBUG-messages.
Guenther (This used to be commit 86a61c86a49a7e4d67e61201458c9b0229fb0825)
This commit is contained in:
parent
19e949a91b
commit
f1fd211e80
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user