Hi,
I am using LDAP change notification control to receive notifications of changes in Active Directory using the guidelines indicated in the following link:
https://docs.microsoft.com/en-us/windows/desktop/ad/example-code-for-receiving-change-notifications.
Change notifications about (Insert and Update) are coming fine but delete notification behavior is not consistent between using LDAP_SCOPE_ONELEVEL and LDAP_SCOPE_SUBTREE.
If I set the base object to be root of naming context then no matter whether LDAP_SCOPE_ONELEVEL or LDAP_SCOPE_SUBTREE is specified I always get all three types of notifications (Insert, Update and Delete).
However, If I use any other container (such as Users) or Organization Unit (OU) as a base object then using LDAP_SCOPE_ONELEVEL always returns all three types of notifications (Insert, Update and Delete) but using LDAP_SCOPE_SUBTREE level ONLY returns (Insert
and Update) notifications but does not send Delete notifications.
Above tests were run against both Active Directory as well as AD LDS separately and the behavior is consistent.
Just wondering if it is an expected behavior or if I am missing anything. Any help would be greatly appreciated.
Thanks,
Nasir