dsdb: Fix the password expiry calculation
authorAmitay Isaacs <amitay@gmail.com>
Thu, 17 Nov 2011 23:34:44 +0000 (10:34 +1100)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 18 Nov 2011 03:38:28 +0000 (14:38 +1100)
commit9318e00a1fab1e6eda6495c44b69d95a980b1e5e
tree66a2ff3df982c33e284f30732659dd30ff0dd812
parentd0e9f22654be1c9972c5b5ba6b3ebe808f27c678
dsdb: Fix the password expiry calculation

As per Section 3.1.1.4.5.26 [MS-ADTS.pdf], password is expired if

  pwdLastSet = null, or
  pwdLastSet = 0, or
  (maxPwdAge != 0x8000000000000000 and (ST - pwdLastSet) > maxPwdAge)
source4/dsdb/common/util.c