I need to get notification when certain events occur in Active Directory using LDAP protocol. Events that should be triggered are:
- When a certain AD group is associated to a user.
- And if a field (like phone number) has changed in AD user.
I searched all internet but mostly solutions are based on the code on the end of this article:
As mentioned in that article there are 3 ways to do it:
- Using USNChanged
- Using the DirSync Control
- And using that code on the end of the page.
For first two options I found articles with examples on Microsoft's site, but all examples are in c++, and I need this in C#.
Other code samples that I found are incomplete and not understandable, so I can't use them appropriate.
Is there any solution, code sample etc that I can use similar to that code on the end of provided article?
Once again, I need this in C#
Thanks