directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pierre-Arnaud Marcelot (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (DIRSTUDIO-804) Interpret Active Directory Timestamps
Date Mon, 15 Oct 2012 12:30:02 GMT

     [ https://issues.apache.org/jira/browse/DIRSTUDIO-804?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Pierre-Arnaud Marcelot updated DIRSTUDIO-804:
---------------------------------------------

    Attachment: Screen Shot 2012-10-15 at 14.23.56.png
                Screen Shot 2012-10-15 at 14.23.46.png

Here are screenshots of the new value editor.
                
> 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
>             Fix For: 2.0.0-M4, 2.0.0
>
>         Attachments: Screen Shot 2012-10-15 at 14.23.46.png, Screen Shot 2012-10-15 at
14.23.56.png
>
>
> 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
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message