Last post Apr 10, 2012 09:01 AM by BrockAllen
Apr 03, 2012 09:38 AM|MVS123|LINK
I would like to add the ability for an ASP.NET based website (an intranet) to display the full name (given name + last name) of the visitor on the front page.
ALL visitors are guaranteed to be domain users since it's an intranet. Sadly I do not have enough experience with authentication in ASP.NET to know how to do this, but after some surfing I know it's possible. I don't know whats the best practice way of doing
it so I would rather have someone lead me in the right direction than saying what I achieved so far.
The only two requirements are:
1. The ability to display the full name of the domain visitor
2. Not forcing to the user to enter his domain username and password since this information should already be accessible through AD and they were already provided when he/she logged on to his computer.
The intranet is running ASP.NET 4.0 hosted on IIS 6.0 running on Windows Server 2008
Any help would be much appreciated!
Apr 03, 2012 11:11 AM|BrockAllen|LINK
1) Setup integrated windows authentication
2) Use User.Identity.Name to determine who the logged in user is
3) Use the
AccountManagement APIs to find the user's info from AD
Apr 10, 2012 07:43 AM|MVS123|LINK
Thanks for your reply.
However, when I do that, I am still prompted for username and password when I go to the URL of the site.
Any help would still be much appreciated!
Apr 10, 2012 09:01 AM|BrockAllen|LINK
So I'd suggest running a network trace with Fiddler to know which URL is triggering the authentication. It could be any number of things...