RE: OLE Hash problem getting AD lastLogon

2003-11-22 Thread Tim Johnson
s why it was showing up as a hash. -Original Message- From: R. Joseph Newton [mailto:[EMAIL PROTECTED] Sent: Saturday, November 22, 2003 1:26 PM To: Tim Johnson Cc: Beginners List Subject: Re: OLE Hash problem getting AD lastLogon Tim Johnson wrote: > I'm having trouble getting

Re: OLE Hash problem getting AD lastLogon

2003-11-22 Thread R. Joseph Newton
Tim Johnson wrote: > I'm having trouble getting the lastLogon property of a user in AD using > Perl and LDAP. Below is my code. The problem is that I keep getting a > blessed Win32::OLE hash returned instead of a number when returning the > value of lastLogon. This is the first issue, and it lo

RE: OLE Hash problem getting AD lastLogon (final version)

2003-11-21 Thread Tim Johnson
Okay, this was such a pain in the buttocks that I decided to post the "final" code. (I'll tweak it a bit later, but this is functional) My apologies to someone, I found the pack(),unpack() part on the Internet, and I'm not sure who the original author is. ###

RE: OLE Hash problem getting AD lastLogon

2003-11-21 Thread Tim Johnson
Okay, I made it one step further. I had to convert the variable to a VT_R8 variable. Now I can't seem to find any documentation on how this relates to the date. I guess from here on out it's a Microsoft, not a Perl question, but I'll post the code I have so far, because I know others have run