Quantcast
Channel: Security
Viewing all articles
Browse latest Browse all 4737

User.Identity.Name ="IIS Server user name instead client user name" IIS local network , Windows authentication

$
0
0

Hi,I like to get client User.Identity.Name on our local network,we are using windows authentication.

My web.confic

<authentication mode="Windows" />           <authorization>               <deny users="?"/>            </authorization>

IIS server  option -Windows Authentication - Enabled

                            - Others Authentication - Disabled

My IIS server name - AdminIIS

Login windows user to IIS server - Admin

I run my application from client computer                 client Login Windows User - Maintenance

Using                    Page.User.Identity.Name                                                                                         I get - AdminIIS\Admin                                System.Web.HttpContext.Current.User.Identity.Name                                           I get - AdminIIS\Admin

I like to get client user name (Maintenance),instead  I getting IIS Server user name,any suggestions?

Thanks


Viewing all articles
Browse latest Browse all 4737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>