Get client user name in

Posted on 2008-10-22
Last Modified: 2013-11-08
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
Question by:Nyana22
  • 2
LVL 13

Assisted Solution

TechTiger007 earned 100 total points
ID: 22777289
You have to enable integrated windows authentication in your IIS settings before trying this

Accepted Solution

M3mph15 earned 200 total points
ID: 22783028
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

Expert Comment

ID: 23010120
Possible solutions have been commented. Waiting on author response.

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question