Joe
Thu Mar 27 15:27:04 PDT 2008
First, I'll assume you already have the numeric value of the attribute and
don't need to do any of the extra conversion to get that value that
developers using LDAP stacks based on ADSI must deal with.
Is there a Java wrapper around the Windows FILETIME data structure? That's
what you need.
If you can generate a date time value based arithmetic on ticks (100 ns
intervals), then you can take the numeric value of acountExpires and add is
to the base value of Jan 1, 1601 00:00:00 UTC.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
<mkulathungam@gmail.com> wrote in message
news:404d1166-f42b-4605-ad32-dfb8727a4cc8@c19g2000prf.googlegroups.com...
> I'm connecting to an AD instance and able to get the raw
> accountExpires value from the entry, but I can't figure out how to
> convert this value into a usable date/time. I've dug around and found
> references to INTEGER8 and bit-shifting and all kinds of other stuff,
> but it's all VB/.NET/C# related code and I can't quite translate that
> into Java.
>
> Any and all help is greatly appreciated.
>