Solved

Get client user name in asp.net

Posted on 2008-10-22
4
1,418 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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 …
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 …

919 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now