diff options
author | Stef Walter <stefw@gnome.org> | 2012-05-07 10:41:24 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-05-07 10:00:16 -0400 |
commit | 5b1a798a2a792c74e5f11f744f4f5b663c8b93c3 (patch) | |
tree | dbe6fc4aefb947dc6bef8ed1d5301e274384fd99 | |
parent | 4d1a261202d828efc84e3a84d16c30548f29f76d (diff) | |
download | sssd-5b1a798a2a792c74e5f11f744f4f5b663c8b93c3.tar.gz sssd-5b1a798a2a792c74e5f11f744f4f5b663c8b93c3.tar.bz2 sssd-5b1a798a2a792c74e5f11f744f4f5b663c8b93c3.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.c | 4 | ||||
-rw-r--r-- | src/util/sss_krb5.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index f403dbc3..cf232b69 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -1288,7 +1288,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 a38a0c1b..d29dbe7d 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; |