diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-11-08 01:46:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:38 -0500 |
commit | 438ca20a3c415d05bb796a3c59bddf5a649bcc5e (patch) | |
tree | 8ca19aae3bc613cc1b69dc002308a6e131dc05f1 /source4/libcli | |
parent | d8565f89b7e42fce569f456a1873866c394d7190 (diff) | |
download | samba-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')
-rw-r--r-- | source4/libcli/auth/clikrb5.c | 2 | ||||
-rw-r--r-- | source4/libcli/auth/gensec_krb5.c | 11 |
2 files changed, 3 insertions, 10 deletions
diff --git a/source4/libcli/auth/clikrb5.c b/source4/libcli/auth/clikrb5.c index 82311e625b..b5158a038a 100644 --- a/source4/libcli/auth/clikrb5.c +++ b/source4/libcli/auth/clikrb5.c @@ -326,7 +326,7 @@ static BOOL ads_cleanup_expired_creds(krb5_context context, } if ((retval = krb5_cc_get_principal(context, ccache, &creds.client))) { - DEBUG(1,("krb5_cc_get_principal failed (%s)\n", + DEBUG(10,("krb5_cc_get_principal failed (%s)\n", error_message(retval))); goto cleanup_creds; } 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; |