I'm in a ASP.NET application using Windows Authentication.
I'm using HttpContext.Current.User.Identity.Name to get the username of the currently authenticated user, which gets me a username in the format DOMAIN\USERNAME. This is working fine.
Is there an easy way to convert this to a display name (e.g. "Richard Gadsden") like the one that appears on the top of my start menu in XP?
If I have to, I guess I can go through System.DirectoryServices and query into ADSI, but surely there's an easier way?