diff options
author | Pavel Reichl <preichl@redhat.com> | 2014-08-01 16:05:13 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-08-17 21:01:49 +0200 |
commit | 9956e720e7f055afdb6ada141b4ab892bfa0930b (patch) | |
tree | c027dbfd2d7ee26acd4683472564cbd2937c7d7d /src | |
parent | ed2136eebe3fbffccb8a5c548afdb815a46d5d39 (diff) | |
download | sssd-9956e720e7f055afdb6ada141b4ab892bfa0930b.tar.gz sssd-9956e720e7f055afdb6ada141b4ab892bfa0930b.tar.xz sssd-9956e720e7f055afdb6ada141b4ab892bfa0930b.zip |
SDAP: don't log error on access denied
Don't log error if access is denied in function sdap_access_done().
Reviewed-by: Pavel Březina <pbrezina@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap_access.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_access.c b/src/providers/ldap/sdap_access.c index e6432de08..9eb8215f5 100644 --- a/src/providers/ldap/sdap_access.c +++ b/src/providers/ldap/sdap_access.c @@ -249,7 +249,12 @@ static void sdap_access_done(struct tevent_req *subreq) talloc_zfree(subreq); if (ret != EOK) { - DEBUG(SSSDBG_CRIT_FAILURE, "Error retrieving access check result.\n"); + if (ret == ERR_ACCESS_DENIED) { + DEBUG(SSSDBG_TRACE_FUNC, "Access was denied.\n"); + } else { + DEBUG(SSSDBG_CRIT_FAILURE, + "Error retrieving access check result.\n"); + } tevent_req_error(req, ret); return; } |