开发者

How to differentiate new added objects and updated objects in DirSync search results (Active Directory)?

开发者 https://www.devze.com 2023-03-31 06:15 出处:网络
Both new added objects and updated objects are returned in DirSync search results, from Active Directory server.

Both new added objects and updated objects are returned in DirSync search results, from Active Directory server.

How to differentiate them, in SearchResponse?

http开发者_如何学编程://msdn.microsoft.com/en-us/library/system.directoryservices.protocols.searchresponse.aspx

As we know, if an AD objects has been deleted, its attribute 'isDeleted' is marked as TRUE.

Thanks in advance.


I don't know that you can. You may need to cache all of the objectGuids locally and do a lookup to see if the objectGuid is one you don't know about.


DirectorySearcher will only return attributes that have changed. WhenCreated is only changed when an object is created, so if it has a value then you're looking at a new object, otherwise it's an update.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号