Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get Network User Credentials (Intranet)

Status
Not open for further replies.

Extension

Programmer
Joined
Nov 3, 2004
Messages
311
Location
CA
I have an intranet application running IIS5 and I would like to get the network username, domain and hostname of the users. The tricky part is that the "Anonymous Access" is enabled and cannot be changed.
I was wondering if it was still possible to get the user credentials even though the Anonymous Access is enabled.

The "Page.User.Identity.Name()" doesn't work with Anonymous Access enabled.

Thanks in advance.
 
You could look through some of the Request.ServerVariables to see if any of those are set. I'd assume that the details are not passed though. You could also check through some of the Windows Authentication articles, e.g.



-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top