402cd42 Bug 722292 - Entries in DS are not updated properly when using WinSync API

Authored and Committed by nkinder 12 years ago
    Bug 722292 - Entries in DS are not updated properly when using WinSync API
    
    When an entry exists in a container entry (such as an OU) in AD, changes
    will not be synced to DS when using a winsync API plug-in that flattens
    the DN.
    
    The problem is that the code that detects if a rename or move of an
    entry in AD has occurred does not call the winsync API plug-in to get
    the local DN.  This would cause the local entry to not be found, which
    makes the modify fail.
    
    This patch makes sure the winsync API plug-in is called when it tries
    to detect if a rename was performed.  In addition, I found that we
    need to re-fetch the newly renamed local entry before attempting to
    apply any modifications to the local entry that we receive from AD.
    Without doing this, the modify was failing since the old DN was being
    used, resulting in an error 32.