572103d Handle races in replica config

Authored and Committed by cheimes 5 years ago
    Handle races in replica config
    
    When multiple replicas are installed in parallel, two replicas may try
    to create the cn=replica entry at the same time. This leads to a
    conflict on one of the replicas. replica_config() and
    ensure_replication_managers() now handle conflicts.
    
    ipaldap now maps TYPE_OR_VALUE_EXISTS to DuplicateEntry(). The type or
    value exists exception is raised, when an attribute value or type is
    already set.
    
    Fixes: https://pagure.io/freeipa/issue/7566
    Signed-off-by: Christian Heimes <cheimes@redhat.com>
    Reviewed-By: Thierry Bordaz <tbordaz@redhat.com>
    Reviewed-By: Thierry Bordaz <tbordaz@redhat.com>
    
        
file modified
+5 -0
file modified
+2 -1