mreynolds / 389-ds-base

Forked from 389-ds-base 6 years ago
Clone

d0a528c Ticket #48266 - (1.2.11 only) Fractional replication evaluates several times the same CSN

Authored and Committed by nhosoi 8 years ago
    Ticket #48266 - (1.2.11 only) Fractional replication evaluates several times the same CSN
    
    Description: Regression introdced by commit 1a58bf85389fc4373af2bf07e96eeb4618cee2b7.
    The patch expected replica_object was set in prp_total, which was missing
    in 1.2.11.  This patch sets it to prp_total in Repl_5_Tot_Protocol_new.
    
    Note: replica_object in prp_total is set in the newer version (1.3.1 and
    newer) by Ticket 47620.
    
    Tested on rhel-6 following the reproducer:
    on ipa master:
     ipa-server-install -p PW -a PW -r DOMAIN -n domainname --ip-address=IP -U
     ipa-replica-prepare -p PW REPLICA_FQDN
     scp /var/lib/ipa/replica-info-REPLICA_FQDN.gpg REPLICA:/var/lib/ipa
    on ipa replica:
      ipa-replica-install /var/lib/ipa/replica-info-REPLICA_FQDN.gpg -p PW -w PW --ip-address=IP
    Without the patch, the DS on master crashed.
    
    https://fedorahosted.org/389/ticket/48266
    
    Reviewed by tbordaz@redhat.com (Thank you, Thierry!!)
    
    (cherry picked from commit 1e7e99d60227276dac6ca78ba519a4a237999b7a)