【发布时间】:2010-02-09 10:59:26
【问题描述】:
我想检索 Active Directory 中用户的创建日期。我知道用户有一个 WhenCreated 属性,但我看不到该属性暴露在我正在使用的 UserPrincipal 类型上。
我想做这样的事情:
var principal = UserPrincipal.FindByIdentity(context, IdentityType.Guid, guid);
//var createdDate = principal.CreationDate;
编辑:这是在 IIS 中运行的 Web 应用程序,查询同一网络上另一台计算机上的 AD 服务器。
【问题讨论】:
-
这是桌面应用还是浏览器应用?
-
@Keith - 它是一个 asp.net mvc 网络应用程序
标签: .net active-directory