userProfile = user.getUserProfile();
PropertySet propSet = userProfile.getAllUserProperties();
Iterator it = propSet.getAll();
while (it.hasNext()) {
Property prop = (Property)it.next();
this.attributes =
this.attributes + "property: " + prop.getName();
Iterator it2 = prop.getValues().iterator();
while (it2.hasNext()) {
Object val = it2.next();
if ( prop.getName().equalsIgnoreCase(ldapAccountExpiresAttribute) ||
prop.getName().equalsIgnoreCase(ldapLastLogonAttribute) ||
prop.getName().equalsIgnoreCase(ldapPwdLastSetAttribute) ){
long adTime = Long.parseLong(val.toString());
long javaTime = adTime - 0x19db1ded53e8000L;
javaTime /= 10000L;
Date day = new Date(javaTime);