summaryrefslogtreecommitdiffstats
path: root/source/libads
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
commit86a61c86a49a7e4d67e61201458c9b0229fb0825 (patch)
treedb7c95a39ea8f19e497e7febcc475b99fd2b5325 /source/libads
parent0e990582a0416933a8671ca660d22e980f828402 (diff)
downloadsamba-86a61c86a49a7e4d67e61201458c9b0229fb0825.tar.gz
samba-86a61c86a49a7e4d67e61201458c9b0229fb0825.tar.xz
samba-86a61c86a49a7e4d67e61201458c9b0229fb0825.zip
r1967: Fix a couple of krb5-DEBUG-messages.
Guenther
Diffstat (limited to 'source/libads')
-rw-r--r--source/libads/kerberos.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/libads/kerberos.c b/source/libads/kerberos.c
index 97b895a2418..327a76826ef 100644
--- a/source/libads/kerberos.c
+++ b/source/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);