lists.arthurdejong.org
RSS feed

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

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

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



Author: arthur
Date: Fri Dec  3 17:03:16 2010
New Revision: 1317
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1317

Log:
fix handling of try_bind() result code in nslcd_pam_authc() (patch by Thaddeus 
J. Kollar)

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

Modified: nss-pam-ldapd/nslcd/pam.c
==============================================================================
--- nss-pam-ldapd/nslcd/pam.c   Fri Nov 26 12:39:58 2010        (r1316)
+++ nss-pam-ldapd/nslcd/pam.c   Fri Dec  3 17:03:16 2010        (r1317)
@@ -185,10 +185,10 @@
   if (rc==LDAP_SUCCESS)
     log_log(LOG_DEBUG,"bind successful");
   /* map result code */
-  switch(rc)
+  switch (rc)
   {
-    case LDAP_SUCCESS:             rc=NSLCD_PAM_SUCCESS;
-    case LDAP_INVALID_CREDENTIALS: rc=NSLCD_PAM_AUTH_ERR;
+    case LDAP_SUCCESS:             rc=NSLCD_PAM_SUCCESS;  break;
+    case LDAP_INVALID_CREDENTIALS: rc=NSLCD_PAM_AUTH_ERR; break;
     default:                       rc=NSLCD_PAM_AUTH_ERR;
   }
   /* write response */
--
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits