Hello Stephen,
On 11 Apr 2011, at 17:26, Stephen Gallagher wrote:
days = ll / 864000000000LL - 134774LL
I note also that your calculation was wrong, because it was dealing
in
nanoseconds, but pwdLastSet is a count of HUNDRED nanosecond blocks.
For reference to whoever might Google this thread, the conversion in nss_ldap is actually
correct:
24*60*60*1000*1000*10 / 864000000000
1.00000
Confirmed with a password set today:
(129473838084062500/(24*60*60*1000*1000*10))-134774
| | |
value in passwdLastSet | days between 1601 and 1970
100ns in days
= 15079.97926
15079.97926/365+1970
2011.31501
Best regards,
--
Pierre Carrier