469,645 Members | 1,941 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,645 developers. It's quick & easy.

Getting Domain\Username

Can somebody remind me how you get the domain\username of the client who's
accessing an intranet site? I know you have to turn on NT authentication on
IIS.

Also, does this work with other browsers such as Firefox? It's a
hypothetical question as the app we're writing is internal and the companies
standard is IE.

I was about to stupidly ask if the same technique works with another web
server but then we couldn't run ASP.NET anyway :-) Doh!

Cheers, Rob.

Nov 19 '05 #1
2 1330
Rob,
Make sure u turn on Integrated Windows Auth and turn off Anonymous
acess.
And call - User.Identity.name

Hope this helps
Patrick
*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #2
> And call - User.Identity.name

Ta - that works fine.

Cheers, Rob.
Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Francis Bell | last post: by
4 posts views Thread by R.Manikandan | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.