lists.arthurdejong.org
RSS feed

nss-pam-ldapd commit: r1439 - in nss-pam-ldapd: nslcd pynslcd

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

nss-pam-ldapd commit: r1439 - in nss-pam-ldapd: nslcd pynslcd



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

Log:
set maxdays to -1 to indicate no expiry (instead of a long time)

Modified:
   nss-pam-ldapd/nslcd/shadow.c
   nss-pam-ldapd/pynslcd/shadow.py

Modified: nss-pam-ldapd/nslcd/shadow.c
==============================================================================
--- nss-pam-ldapd/nslcd/shadow.c        Thu Apr 28 20:47:39 2011        (r1438)
+++ nss-pam-ldapd/nslcd/shadow.c        Fri Apr 29 20:19:29 2011        (r1439)
@@ -282,7 +282,7 @@
   if (strcasecmp(attmap_shadow_shadowLastChange,"pwdLastSet")==0)
   {
     if (flag&UF_DONT_EXPIRE_PASSWD)
-      maxdays=99999;
+      maxdays=-1;
     flag=0;
   }
   /* write the entries */

Modified: nss-pam-ldapd/pynslcd/shadow.py
==============================================================================
--- nss-pam-ldapd/pynslcd/shadow.py     Thu Apr 28 20:47:39 2011        (r1438)
+++ nss-pam-ldapd/pynslcd/shadow.py     Fri Apr 29 20:19:29 2011        (r1439)
@@ -83,7 +83,7 @@
         flag = int(attributes.get(self.attmap_shadowFlag, [0])[0])
         if self.attmap_shadowFlag == 'pwdLastSet':
             if flag & 0x10000:
-                maxdays = 99999
+                maxdays = -1
             flag = 0
         # write results
         for name in names:
-- 
To unsubscribe send an email to
nss-pam-ldapd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/nss-pam-ldapd-commits