Given an AD entry, how can I get the full qualified domain name of the user?
Up to now I used
((string)directoryEntry.Properties["userPrincipalName"].Value).Split('@')[1]
but userPrincipalName
is not a required property, so I guess I need a fallback...