Solved

Get client user name in asp.net

Posted on 2008-10-22
4
1,417 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
Comment Utility
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
Comment Utility
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
Comment Utility
Possible solutions have been commented. Waiting on author response.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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

12 Experts available now in Live!

Get 1:1 Help Now