简体   繁体   English

如何在ASP.NET中找到经过客户端Windows身份验证的用户名

[英]how to find client side windows authenticated user name in ASP.NET

My code is deployed in the server, now in the client side when a user enters in to the website, then the user's windows authenticated user name should be displayed. 我的代码部署在服务器中,现在当用户进入网站时在客户端中进行部署,然后应显示该用户的Windows身份验证用户名。 Kindly help. 请帮助。

You can read the windows authenticated user with 您可以阅读Windows身份验证的用户

string authuser;
authuser = HttpContext.Current.User.Identity.Name;

After that you can read more informations about the user from the active directory. 之后,您可以从活动目录中读取有关该用户的更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在asp.net中获取Windows身份验证用户的用户名? - How to get the username of windows authenticated user in asp.net? 在ASP.Net中临时模拟Windows身份验证的用户 - Temporarily impersonate the Windows authenticated user in ASP.Net 在asp.net中获取客户端Windows用户ID,用于LDAP单点登录 - Getting Client side Windows User ID in asp.net, for LDAP single sign on 如何在asp.net中使用Windows身份验证获取用户名? - How to get user name using Windows authentication in asp.net? 如何找出ASP.NET中当前登录用户的名称? - How to find out the name of currently logged in user in ASP.NET? 如何在asp.net应用程序中找到经过身份验证的Cookie - how to find authenticated cookies in asp.net application 如何从ASP.NET网页获取SharePoint身份验证的用户? - How to get the SharePoint authenticated user from an ASP.NET webpage? 检索浏览我的asp.net Web应用程序的客户端的Windows用户名 - Retrieve windows user name of client who browses my asp.net web application 如何在asp.net中使用Log4net记录客户端IP,浏览器名称和用户名? - How to Log Client Ip, Browser Name and User Name using Log4net in asp.net? 在.net app中获取Windows身份验证的用户名? - Get windows authenticated user name in .net app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM