Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/nslcd
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2011-04-29 20:19:29 +0200
committerArthur de Jong <arthur@arthurdejong.org>2011-04-29 20:19:29 +0200
commit164bd0df051148e4e85b10c1dd4455c051f5ff9c (patch)
tree4e0d3bb54066c86979278afce14e2313250f66e7 /nslcd
parent2e677444701d1c0295fa126b056d26c7468f9862 (diff)
set maxdays to -1 to indicate no expiry (instead of a long time)
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1439 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd')
-rw-r--r--nslcd/shadow.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nslcd/shadow.c b/nslcd/shadow.c
index eb7e229..d21a534 100644
--- a/nslcd/shadow.c
+++ b/nslcd/shadow.c
@@ -282,7 +282,7 @@ static int write_shadow(TFILE *fp,MYLDAP_ENTRY *entry,const char *requser)
if (strcasecmp(attmap_shadow_shadowLastChange,"pwdLastSet")==0)
{
if (flag&UF_DONT_EXPIRE_PASSWD)
- maxdays=99999;
+ maxdays=-1;
flag=0;
}
/* write the entries */