This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
ldap:ad_field_format [2022/03/14 11:53] manu created |
ldap:ad_field_format [2022/03/14 14:16] (current) manu |
||
---|---|---|---|
Line 15: | Line 15: | ||
accountExpires: 9223372036854775807 | accountExpires: 9223372036854775807 | ||
</cli> | </cli> | ||
+ | |||
+ | accountExpires: 9223372036854775807 ==> Never expires (no need to convert) | ||
+ | |||
+ | pwdLastSet ==> value in 100 nanoseconds from 1 january 1601 | ||
+ | |||
+ | Seconds between 1 january 1601 and 1 january 1970: 11644473600000 | ||
+ | |||
+ | Converting this value to EPOCH: | ||
+ | epoch_seconds=((windows_value_100nano)-(11644473600000 * 10000)) /10000000 | ||
+ | | ||
+ | Once converted to EPOCH, you can use the linux date command like this | ||
+ | date -d@1646642232 +"%Y-%m-%d %H:%M:%S" | ||
+ |