【问题标题】:Find date/time of last update to email address in Active Directory在 Active Directory 中查找上次更新电子邮件地址的日期/时间
【发布时间】:2018-10-05 20:04:18
【问题描述】:

当我们的用户通过自定义 C# 应用在 AD LDS 中更改他们的密码时,我们还允许他们更新他们的电子邮件地址。有没有办法检测电子邮件地址更新的日期/时间?还是我们只需要使用 LastPasswordSet 值?我们需要将其与我们的 AS/400 中的电子邮件进行比较,并根据最新的地址同步它们。

【问题讨论】:

标签: c# .net active-directory ldap adlds


【解决方案1】:

您可以通过在 Active Directory Windows 服务器上观看 Windows Security Log Event ID 642 来获取有关帐户更改的所有历史记录。
(ref)

【讨论】:

    【解决方案2】:

    属性元数据会告诉您属性何时更改 (https://docs.microsoft.com/en-us/dotnet/api/system.directoryservices.activedirectory.attributemetadata?redirectedfrom=MSDN&view=netframework-4.7.2)。

    我不知道对元数据进行 过滤 的任何方法,但我通常会过滤 whenChanged 时间戳(或在您的情况下为密码更新时间戳)以获得一组 潜在 使用我正在跟踪的属性的元数据更改并过滤掉不相关的对象。

    // Grab all accounts updated since last batch cycle
    // For each user, check LastOriginatingChangeTime of interesting attribute
    // If LastOriginatingChangeTime >= last cycle, check value in target system
    // If value in target system != value in AD, update target system with value from AD
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-04-01
      • 1970-01-01
      • 2012-03-06
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多