summaryrefslogtreecommitdiff
path: root/source4/libcli/auth/gensec_krb5.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2004-11-08 01:46:00 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:05:38 -0500
commit438ca20a3c415d05bb796a3c59bddf5a649bcc5e (patch)
tree8ca19aae3bc613cc1b69dc002308a6e131dc05f1 /source4/libcli/auth/gensec_krb5.c
parentd8565f89b7e42fce569f456a1873866c394d7190 (diff)
downloadsamba-438ca20a3c415d05bb796a3c59bddf5a649bcc5e.tar.gz
samba-438ca20a3c415d05bb796a3c59bddf5a649bcc5e.tar.bz2
samba-438ca20a3c415d05bb796a3c59bddf5a649bcc5e.zip
r3609: Lets spew out a few less error messages for tridge, and hope to get
krb5 going on recent heimdal installs. Andrew Bartlett (This used to be commit a758725407df0c87922a15aa32cc841bc4c059a2)
Diffstat (limited to 'source4/libcli/auth/gensec_krb5.c')
-rw-r--r--source4/libcli/auth/gensec_krb5.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/source4/libcli/auth/gensec_krb5.c b/source4/libcli/auth/gensec_krb5.c
index 37e96cf9dc..feb78a016b 100644
--- a/source4/libcli/auth/gensec_krb5.c
+++ b/source4/libcli/auth/gensec_krb5.c
@@ -353,10 +353,6 @@ static NTSTATUS gensec_krb5_client_start(struct gensec_security *gensec_security
gensec_security->target.principal,
gensec_krb5_state->krb5_ccache,
&gensec_krb5_state->ticket);
- if (ret) {
- DEBUG(1,("ads_krb5_mk_req failed (%s)\n",
- error_message(ret)));
- }
} else {
krb5_data in_data;
const char *hostname = gensec_get_target_hostname(gensec_security);
@@ -374,10 +370,6 @@ static NTSTATUS gensec_krb5_client_start(struct gensec_security *gensec_security
hostname,
&in_data, gensec_krb5_state->krb5_ccache,
&gensec_krb5_state->ticket);
- if (ret) {
- DEBUG(1,("krb5_mk_req failed (%s)\n",
- error_message(ret)));
- }
}
switch (ret) {
@@ -391,13 +383,14 @@ static NTSTATUS gensec_krb5_client_start(struct gensec_security *gensec_security
case KRB5KRB_AP_ERR_TKT_EXPIRED:
case KRB5_CC_END:
{
- DEBUG(3, ("kerberos: %s\n",
+ DEBUG(3, ("kerberos (mk_req) failed: %s\n",
error_message(ret)));
/* fall down to remaining code */
}
/* just don't print a message for these really ordinary messages */
case KRB5_FCC_NOFILE:
case KRB5_CC_NOTFOUND:
+ case ENOENT:
{
char *password;
time_t kdc_time = 0;