lists.arthurdejong.org
RSS feed

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

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

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



Author: arthur
Date: Fri Jun 15 23:15:00 2012
New Revision: 1703
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?revision=1703&view=revision

Log:
log successful password change in nslcd and correctly terminate protocol on 
password change failure

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

Modified: nss-pam-ldapd/nslcd/pam.c
==============================================================================
--- nss-pam-ldapd/nslcd/pam.c   Fri Jun 15 23:04:44 2012        (r1702)
+++ nss-pam-ldapd/nslcd/pam.c   Fri Jun 15 23:15:00 2012        (r1703)
@@ -689,8 +689,10 @@
     WRITE_INT32(fp,NSLCD_PAM_PERM_DENIED);
     WRITE_STRING(fp,authzmsg);
     WRITE_INT32(fp,NSLCD_RESULT_END);
+    return 0;
   }
   /* write response */
+  log_log(LOG_NOTICE,"password changed for %s",myldap_get_dn(entry));
   WRITE_INT32(fp,NSLCD_RESULT_BEGIN);
   WRITE_STRING(fp,username);
   WRITE_STRING(fp,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/