adamwill / 389-ds-base

Forked from 389-ds-base 4 years ago
Clone

a605e94 Ticket #47989 - Windows Sync accidentally cleared raw_entry

Authored and Committed by nhosoi 9 years ago
    Ticket #47989 - Windows Sync accidentally cleared raw_entry
    
    Description: raw_entry in the private area in Windows Agreement stores
    raw_entry that is un-schema processed last entry read from AD.
    The pointer was cleared before it is being accessed by the Plug-ins that
    call Windows Sync API, e.g., Posix Sync.  The bug was introduced by
    commit f6397113666f06848412bb12f754f04258cfa5fa.
    
    This patch removed the raw_entry cleanup code in windows_search_entry_ext.
    And in case the raw_entry is NULL, pass remote_entry for the AD entry.
    
    https://fedorahosted.org/389/ticket/47989
    
    Reviewed by mreynolds@redhat.com (Thank you, Mark!!)
    
    (cherry picked from commit 3305a6b849f79a9684799bec4cc155c7147daea6)
    (cherry picked from commit f6d8b2ec3dee5760826892f522c0f1e1989f9fcb)
    (cherry picked from commit 19af1afa4012a66fda2bc5e2e70ac315b70444af)
    (cherry picked from commit bf55d5ac6547028ebabdcf19df28cfdd4017872f)