【发布时间】:2017-06-06 11:47:44
【问题描述】:
如何在新的 .net 核心框架中获取 windows pc 上当前登录的用户?
旧命名空间
System.DirectoryServices;
System.DirectoryServices.AccountManagement;
尚未实施 :( 建议移植库novell.ldap,但我仍然不明白如何获取有关用户的信息。
我从System.Security.Principal.WindowsIdentity.GetCurrent().Name 得到短名称
如何获得全名?示例“玛丽安”
【问题讨论】:
标签: asp.net .net asp.net-core ldap