Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1432
  • Last Modified:

Get client user name in asp.net

Hello,
I have an ASP.Net 3.5 application running on intranet (IIS), all the users had their user name and password to log to the network.
How can i get the client user name?
i tried User.Identity.Name and it's not working!

any advices, please
thanks
0
Nyana22
Asked:
Nyana22
  • 2
2 Solutions
 
TechTiger007Commented:
You have to enable integrated windows authentication in your IIS settings before trying this
0
 
M3mph15Commented:
In IIS if you set the directory security to allow Windows Authenticated access and disallow Anonymous access you can then use something like:
userid = request.servervariables("AUTH_USER") to get the user's Windows domain username
0
 
M3mph15Commented:
Possible solutions have been commented. Waiting on author response.
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now