title: How can I get DOMAIN\USER from an AD DirectoryEntry?
body: <p>How can I get the Windows user and domain from an Active Directory DirectoryEntry (SchemaClassName="user") object?</p>
  
  <p>The user name is in the sAMAccountName property but where can I look up the domain name?</p>
  
  <p>(I can't assume a fixed domain name because the users are from various subdomains.)</p>