Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C1CFB9F27 for ; Sun, 15 Apr 2012 09:37:47 +0000 (UTC) Received: (qmail 28443 invoked by uid 500); 15 Apr 2012 09:37:47 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 28192 invoked by uid 500); 15 Apr 2012 09:37:47 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 28181 invoked by uid 99); 15 Apr 2012 09:37:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2012 09:37:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Apr 2012 09:37:45 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B455D36B159 for ; Sun, 15 Apr 2012 09:37:25 +0000 (UTC) Date: Sun, 15 Apr 2012 09:37:25 +0000 (UTC) From: "Jim Willeke (Created) (JIRA)" To: dev@directory.apache.org Message-ID: <437519304.26394.1334482645754.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (DIRSTUDIO-804) Interpret Active Directory Timestamps MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org 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