title: Getting a UserPrincipal from ADUser
body: <p>I have a List of ADUsers but foreach ADUSER I want to get its property "LastPasswordSet" Which is only accessible (am not sure if there is any other way as well) through UserPrincipal.</p>
  
  <p>If i Use this code,</p>
  
  <pre><code> PrincipalContext l_objContext = new PrincipalContext(ContextType.Domain, l_strDomain, l_strUserOU);
  
   foreach (ADUser ADuser in Users)
              {
                  UserPrincipal usr = UserPrincipal.FindByIdentity(l_objContext, ADuser.CommonName.ToString());
  
                  if (usr.LastPasswordSet.HasValue)
                  {
                      EmailString(usr.LastPasswordSet.ToString());
                  }
              }
  </code></pre>
  
  <p>Now I dont want to provide Any thing to UserPrincipal other then Any of property of ADUSER, and the above code doesn't work either, the problem is that its send few emails and then come across somewhere it gives and an error and service stops, which probably because of some unvalid date (I dont want to fix it, just stated so that you get idea of what i am doing)</p>