Microsoft active directory stores attribute lastLogonTimestamp with data type microsoft OID. When we retrive this attribute using peoplecodewe get encrypted value. When I searched help for it on net I am getting below that can be execued thru visual basic.
Did some search on the net and I found the java equivalent of the vb script at
Whenever PeopleCode doesn't do the job, I find a solution in Java.
Compile Java, add class to PS_HOME/classes dir, reboot appserver and call Java class from PeopleCode with buildin function CreateJavaObject()
Java Sample :
If you want to create a java date object out of this value, please try following this sample, where i have used an adjustment factor to convert the lastLogonTimestamp value into a Date object..
public static void main(String args)
long llastLogonAdjust=11644473600000L; // adjust factor for converting it to java
Date lastLogon = new Date(127877417297554938L/10000-llastLogonAdjust); //