Uploaded image for project: 'Directory Studio'
  1. Directory Studio
  2. DIRSTUDIO-804

Interpret Active Directory Timestamps

Watch issueLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

      Description

      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; }

        Attachments

        1. Screen Shot 2012-10-15 at 14.23.46.png
          62 kB
          Pierre-Arnaud Marcelot
        2. Screen Shot 2012-10-15 at 14.23.56.png
          31 kB
          Pierre-Arnaud Marcelot

        Issue Links

          Activity

            People

            • Assignee:
              pamarcelot Pierre-Arnaud Marcelot
              Reporter:
              jswilleke Jim Willeke

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment