directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Willeke (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DIRSTUDIO-804) Interpret Active Directory Timestamps
Date Sun, 15 Apr 2012 09:37:25 GMT
Interpret Active Directory Timestamps
-------------------------------------

                 Key: DIRSTUDIO-804
                 URL: https://issues.apache.org/jira/browse/DIRSTUDIO-804
             Project: Directory Studio
          Issue Type: New Feature
          Components: studio-ldapbrowser
    Affects Versions: 2.0.0-M3
         Environment: All.
            Reporter: Jim Willeke
            Priority: Minor


Within Active Directory there are several attributes which represent time as using the OID:
1.2.840.113556.1.4.906 (Large Integer).

The common attributes I often use are:
pwdLastSet
accountExpires
lastLogoff
lastLogon
lastLogonTimeStamp
badPasswordTime
(There a some others that some people may wish to use also)

It would be helpful, if there was a value editor that could accomodate the time values presented
within these attribute.

I have used the following code for the conversion and it is works out to be very close:
    public static Date convertAdFileTimeToDate(long adFileTimeStamp)
    {
	Date adDate = new Date((adFileTimeStamp - 116444736000000000L) / 10000);
	return adDate;
    }


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message