lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1444 - nss-pam-ldapd/nslcd

[Date Prev][Date Next] [Thread Prev][Thread Next]

nss-pam-ldapd commit: r1444 - nss-pam-ldapd/nslcd



Author: arthur
Date: Sat Apr 30 10:39:12 2011
New Revision: 1444
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1444

Log:
fix return value of try_autzsearch() when no match found

Modified:
   nss-pam-ldapd/nslcd/pam.c

Modified: nss-pam-ldapd/nslcd/pam.c
==============================================================================
--- nss-pam-ldapd/nslcd/pam.c   Sat Apr 30 10:12:18 2011        (r1443)
+++ nss-pam-ldapd/nslcd/pam.c   Sat Apr 30 10:39:12 2011        (r1444)
@@ -326,6 +326,8 @@
   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));
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits