User Tools

Site Tools


ldap:ad_field_format

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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"​
 +
ldap/ad_field_format.1647255204.txt.gz ยท Last modified: 2022/03/14 11:53 by manu