[英]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.