AuthenticablePrincipal.LastLogon 属性是 LastLogOnTimeStamp 值吗?

CB.*_*CB. 5 c# active-directory .net-3.5

system.directoryservices.accountmanagement属性中LastLogonLastLogOnTimeStampValue在所有域的域控制器上复制还是从所有可用域的 DC 的比较中派生的 La​​stLogon 属性的更新值?

我在 MSDN 中找不到这个属性被占用的地方。

Han*_*ans 0

LastLogon该类的属性从Active Directory 对象AuthenticablePrincipal读取属性。lastLogonTimestamp您可以按照下面列出的步骤进行验证:

  1. 打开域控制器上的 Active Directory 用户和计算机 MMC 管理单元。
  2. 从“视图”菜单中选择“高级功能”。
  3. 右键单击映射到 AuthenticablePrincipal 对象的 Active Directory 对象(用户)并选择属性。
  4. 选择属性编辑器选项卡。在那里您将找到lastLogonlastLogonTimestamp属性。

在我的测试系统(.Net Framework 4.0、Active Directory 2008 R2)上,类LastLogon的属性AuthenticablePrincipal映射到lastLogonTimestamp相关 Active Directory 对象的属性。

希望这可以帮助。