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.

This archive was generated using
mhonarc
on Mon Jun 01 04:04:32 2020.
If you have any questions about these pages, please contact
listmaster [at]
arthurdejong.org.
Please see the mailing list policy and disclaimer.