diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2011-04-30 10:39:12 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2011-04-30 10:39:12 +0200 |
commit | 88d6fd14d8575c43470e38a8da0d211596645224 (patch) | |
tree | e669b6705db168efc454020b7a280381ec630454 /nslcd | |
parent | a327bd7d964d0c205f4c5346c5e909a240ac0314 (diff) |
fix return value of try_autzsearch() when no match found
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1444 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd')
-rw-r--r-- | nslcd/pam.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nslcd/pam.c b/nslcd/pam.c index 4518083..6fc2d08 100644 --- a/nslcd/pam.c +++ b/nslcd/pam.c @@ -326,6 +326,8 @@ static int try_autzsearch(MYLDAP_SESSION *session,const char *dn, if (entry==NULL) { log_log(LOG_ERR,"pam_authz_search \"%s\" found no matches",filter_buffer); + if (rc==LDAP_SUCCESS) + rc=LDAP_NO_SUCH_OBJECT; return rc; } log_log(LOG_DEBUG,"pam_authz_search found \"%s\"",myldap_get_dn(entry)); |