I have tried posting previously with not a lot of success, so I thought I would try reposting and making it a little clearer...
I am using PHP and LDAP to pull out information out of Microsoft Active Directory. This works well for most fields and I can get things like dates of when the account was changed and when it was created. BUT for some reason the "accountexpires" is stored as a different format to the others.
According to what I have read in other places, the format is
LARGE INT or INTEGER8 (Mabey these are the same?) which PHP doesnt seem to handle natively. It seems to be a function of C. From what I read it is a 64 bit integer which has to be converted down.
Once converted to a "Normal Interger" the actual number should come out as a standard UNIX date/time.
The raw number I get from AD is: 127093968000000000 when I run my LDAP query. The "accountexpires" in this case is 30 september 2003.
HELP!