简体   繁体   English

在C#中获取Active Directory用户

[英]Getting Active Directory user in C#

I have built a C# application to get users from AD. 我已经构建了一个C#应用程序来从AD获取用户。 It works fine. 工作正常。
The problem I have is that when new users are added in a specific server then my app does not retrieve them. 我的问题是,当新用户添加到特定服务器中时,我的应用程序不会检索它们。 Users that have been added in the past (a few months ago) are retrieved. 检索过去(几个月前)添加的用户。

Any idea why this is happening? 知道为什么会这样吗?

Probably you have multiple active directory servers. 可能您有多个活动目录服务器。 When you add a new user to a domain they have to sync each other. 当您将新用户添加到域时,他们必须彼此同步。 This happens every 60min normally. 通常每60分钟发生一次。 Otherwise you have to ask all active directories and merge the information. 否则,您必须询问所有活动目录并合并信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM