lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1440 - in nss-pam-ldapd: . pam

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

nss-pam-ldapd commit: r1440 - in nss-pam-ldapd: . pam



Author: arthur
Date: Fri Apr 29 20:21:30 2011
New Revision: 1440
URL: http://arthurdejong.org/viewvc/nss-pam-ldapd?view=rev&revision=1440

Log:
support more PAM status codes over the nslcd protocol

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

Modified: nss-pam-ldapd/nslcd.h
==============================================================================
--- nss-pam-ldapd/nslcd.h       Fri Apr 29 20:19:29 2011        (r1439)
+++ nss-pam-ldapd/nslcd.h       Fri Apr 29 20:21:30 2011        (r1440)
@@ -252,8 +252,10 @@
 #define NSLCD_PAM_NEW_AUTHTOK_REQD   12 /* Password expired */
 #define NSLCD_PAM_ACCT_EXPIRED       13 /* Account expired */
 #define NSLCD_PAM_SESSION_ERR        14 /* Cannot make/remove session record */
+#define NSLCD_PAM_AUTHTOK_ERR        20 /* Authentication token manipulation 
error */
 #define NSLCD_PAM_AUTHTOK_DISABLE_AGING 23 /* Password aging disabled */
 #define NSLCD_PAM_IGNORE             25 /* Ignore module */
 #define NSLCD_PAM_ABORT              26 /* Fatal error */
+#define NSLCD_PAM_AUTHTOK_EXPIRED    27 /* authentication token has expired */
 
 #endif /* not _NSLCD_H */

Modified: nss-pam-ldapd/pam/pam.c
==============================================================================
--- nss-pam-ldapd/pam/pam.c     Fri Apr 29 20:19:29 2011        (r1439)
+++ nss-pam-ldapd/pam/pam.c     Fri Apr 29 20:21:30 2011        (r1440)
@@ -239,9 +239,11 @@
     map(PAM_NEW_AUTHTOK_REQD);
     map(PAM_ACCT_EXPIRED);
     map(PAM_SESSION_ERR);
+    map(PAM_AUTHTOK_ERR);
     map(PAM_AUTHTOK_DISABLE_AGING);
     map(PAM_IGNORE);
     map(PAM_ABORT);
+    map(PAM_AUTHTOK_EXPIRED);
     default:
       pam_syslog(pamh,LOG_ERR,"unknown NSLCD_PAM_* code returned: %d",rc);
       return PAM_ABORT;
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits