diff options
author | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-04 13:58:39 -0500 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-02-04 14:31:35 -0500 |
commit | 586793c2f95b574695c5520cf6f3ef019fb58519 (patch) | |
tree | 1468ee807763db3157190c61fe63930aff4763e0 /src | |
parent | 82bfb315f3dbacf4a6dbfc483cf1eb87f30c015c (diff) | |
download | sssd-586793c2f95b574695c5520cf6f3ef019fb58519.tar.gz sssd-586793c2f95b574695c5520cf6f3ef019fb58519.tar.bz2 sssd-586793c2f95b574695c5520cf6f3ef019fb58519.zip |
Only print "no matching service rule" when appropriate
Diffstat (limited to 'src')
-rw-r--r-- | src/providers/ldap/sdap_access.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/providers/ldap/sdap_access.c b/src/providers/ldap/sdap_access.c index f5220742..5a6b4a5d 100644 --- a/src/providers/ldap/sdap_access.c +++ b/src/providers/ldap/sdap_access.c @@ -1001,13 +1001,13 @@ static struct tevent_req *sdap_access_service_send( if (state->pam_status != PAM_SUCCESS) { DEBUG(4, ("No matching service rule found\n")); - } - ret = pam_add_response(pd, SSS_PAM_SYSTEM_INFO, - sizeof(AUTHR_SRV_NO_MATCH_MSG), - (const uint8_t *) AUTHR_SRV_NO_MATCH_MSG); - if (ret != EOK) { - DEBUG(1, ("pam_add_response failed.\n")); + ret = pam_add_response(pd, SSS_PAM_SYSTEM_INFO, + sizeof(AUTHR_SRV_NO_MATCH_MSG), + (const uint8_t *) AUTHR_SRV_NO_MATCH_MSG); + if (ret != EOK) { + DEBUG(1, ("pam_add_response failed.\n")); + } } ret = EOK; |