diff options
author | Andrew Tridgell <tridge@samba.org> | 2011-06-17 13:47:14 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2011-06-17 15:24:23 +1000 |
commit | e080ae0faa2556825189f82fa61a7ff5f249dbc5 (patch) | |
tree | 2f30993c0cf36217fa2ca709780bfd2105b2f0e8 /source4/auth/credentials | |
parent | 705ed1c4921a1456ebcf80ac352567679ab7dfa9 (diff) | |
download | samba-e080ae0faa2556825189f82fa61a7ff5f249dbc5.tar.gz samba-e080ae0faa2556825189f82fa61a7ff5f249dbc5.tar.bz2 samba-e080ae0faa2556825189f82fa61a7ff5f249dbc5.zip |
s4-auth: quiet down the krb5 warnings when kerberos is not set to 'MUST'
this prevents spurious error messages on client commands when when we
will fallback to NTLM authentication
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/auth/credentials')
-rw-r--r-- | source4/auth/credentials/credentials_krb5.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/auth/credentials/credentials_krb5.c b/source4/auth/credentials/credentials_krb5.c index 26fa8099ab..6670f434d9 100644 --- a/source4/auth/credentials/credentials_krb5.c +++ b/source4/auth/credentials/credentials_krb5.c @@ -482,7 +482,11 @@ _PUBLIC_ int cli_credentials_get_client_gss_creds(struct cli_credentials *cred, ret = cli_credentials_get_ccache(cred, event_ctx, lp_ctx, &ccache, error_string); if (ret) { - DEBUG(1, ("Failed to get CCACHE for GSSAPI client: %s\n", error_message(ret))); + if (cli_credentials_get_kerberos_state(cred) == CRED_MUST_USE_KERBEROS) { + DEBUG(1, ("Failed to get kerberos credentials (kerberos required): %s\n", error_message(ret))); + } else { + DEBUG(4, ("Failed to get kerberos credentials: %s\n", error_message(ret))); + } return ret; } |