shadow.c
[Date Prev][Date Next] [Thread Prev][Thread Next]shadow.c
- From: Joshua Shire <jshire [at] hyduke.com>
- To: "nss-pam-ldapd-users [at] lists.arthurdejong.org" <nss-pam-ldapd-users [at] lists.arthurdejong.org>
- Subject: shadow.c
- Date: Fri, 24 Jan 2014 12:06:54 -0700
Hey Guys, Just implementing 0.9.2 on an older 32 bit system, ran across an issue with pwdLastSet attribute Line 135 in shadow.c should probably read: value = strtol(buffer, &tmp, 10); As opposed to: value = strtol(date, &tmp, 10); As I understand it, we read the date into the buffer to the specified length to get it to the Unix time (e.g. seconds) from its AD value of nanoseconds, then convert it to days for shadow. If we use date rather than buffer we end up trying to convert the nanosecond value. Joshua Shire Information Systems Manager Hyduke Energy Services Inc. ph: 780-955-0401 fax: 780-955-0368 mx: help [at] hyduke.com Proud to be named Alberta Exporter of the Year, 2013! |
-- To unsubscribe send an email to nss-pam-ldapd-users-unsubscribe@lists.arthurdejong.org or see http://lists.arthurdejong.org/nss-pam-ldapd-users/
- shadow.c, Joshua Shire
- Re: shadow.c, Arthur de Jong
- Prev by Date: Re: NSLCD: Resource temporarily unavailable
- Next by Date: ldap authentication broken after switch to nss-pam-ldapd
- Previous by thread: Re: NSLCD: Resource temporarily unavailable
- Next by thread: Re: shadow.c