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

Interpret Active Directory Timestamps

    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.56.png
          31 kB
          Pierre-Arnaud Marcelot
        2. Screen Shot 2012-10-15 at 14.23.46.png
          62 kB
          Pierre-Arnaud Marcelot

        Issue Links

          Activity

            People

              pamarcelot Pierre-Arnaud Marcelot
              jswilleke Jim Willeke
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: