Hardbone
Hardbone

Reputation: 327

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

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.

Upvotes: 2

Views: 1601

Answers (2)

John Hansen
John Hansen

Reputation: 123

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.

Upvotes: 1

Brian Desmond
Brian Desmond

Reputation: 4503

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.

Upvotes: 1

Related Questions