b189be1 dsinstance: reconnect ldap2 after DS is restarted by certmonger

2 files Authored by jcholast 7 years ago, Committed by mbabinsk 7 years ago,
    dsinstance: reconnect ldap2 after DS is restarted by certmonger
    
    DS is restarted by certmonger in the restart_dirsrv script after the DS
    certificate is saved. This breaks the ldap2 backend and makes any operation
    fail with NetworkError until it is reconnected.
    
    Reconnect ldap2 after the DS certificate request is finished to fix the
    issue. Make sure restart_dirsrv waits for the ldapi socket so that the
    reconnect does not fail.
    
    https://pagure.io/freeipa/issue/6757
    
    Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>