How to retrieve last logon/logoff time in Active Directory (ADAM)?
I need to write code (C# or Java) to retrieve user logon/logoff information from ADAM, but i'm not sure where to start or if it's even possible.
There is a lastLogonTimeStamp
attribute in AD that will give you this information. However to have this attribute your domain must be at least Windows Server 2003 Domain Functional Level. Just because you have 2003 DC's, don't assume that your DFL has been raised to that level if you are having problems getting this attribute.
Sam