summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-05-07 10:41:24 +0200
committerStephen Gallagher <sgallagh@redhat.com>2012-05-22 09:13:21 -0400
commit583025ba4ce58273e4a2fe645b96ccb421fcfb67 (patch)
treee10e556a3efe441692e1d05811803fb31a244807
parente413168d70c3ac08dc367d9889076e3f32701221 (diff)
downloadsssd-583025ba4ce58273e4a2fe645b96ccb421fcfb67.tar.gz
sssd-583025ba4ce58273e4a2fe645b96ccb421fcfb67.tar.xz
sssd-583025ba4ce58273e4a2fe645b96ccb421fcfb67.zip
Remove erroneous failure message in find_principal_in_keytab
* When it's actually a failure, then the callers will print a message. Fine tune this.
-rw-r--r--src/providers/krb5/krb5_child.c4
-rw-r--r--src/util/sss_krb5.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c
index 56b2ac945..08e525ce2 100644
--- a/src/providers/krb5/krb5_child.c
+++ b/src/providers/krb5/krb5_child.c
@@ -1307,7 +1307,9 @@ static krb5_error_code check_fast_ccache(krb5_context ctx, const char *primary,
kerr = find_principal_in_keytab(ctx, keytab, primary, realm, &client_princ);
if (kerr != 0) {
- DEBUG(1, ("find_principal_in_keytab failed.\n"));
+ DEBUG(SSSDBG_MINOR_FAILURE,
+ ("find_principal_in_keytab failed for principal %s@%s.\n",
+ primary, realm));
goto done;
}
diff --git a/src/util/sss_krb5.c b/src/util/sss_krb5.c
index c944bf02c..81a1623ef 100644
--- a/src/util/sss_krb5.c
+++ b/src/util/sss_krb5.c
@@ -497,7 +497,7 @@ krb5_error_code find_principal_in_keytab(krb5_context ctx,
if (!principal_found) {
kerr = KRB5_KT_NOTFOUND;
- DEBUG(SSSDBG_MINOR_FAILURE,
+ DEBUG(SSSDBG_TRACE_FUNC,
("No principal matching %s@%s found in keytab.\n",
pattern_primary, pattern_realm));
goto done;