Solved

Get client user name in asp.net

Posted on 2008-10-22
4
1,421 Views
Last Modified: 2013-11-08
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
Comment
Question by:Nyana22
  • 2
4 Comments
 
LVL 13

Assisted Solution

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

Accepted Solution

by:
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
0
 
LVL 6

Expert Comment

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
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 …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used.

790 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