922062e install tools: ldap conn management

13 files Authored by tkrizek 7 years ago, Committed by mbasti 7 years ago,
    install tools: ldap conn management
    
    * ipca-ca-install: Use a single ldap connection for the entire
        script. Connecting with ccache in promote is not needed.
    * ipa-cacert-manage: Always connect to ldap, since renew and install
        are the only options and renew seems to need ldap connection even
        for self signed certificates.
    * ipa-compat-manage: Use one ldap connection for the entire script.
        Replaced try-finally with proper disconnect, code block reindented.
    * ipa-csreplica-manage: Properly establish and close the ldap connection.
    * ipa-dns-install: Proper connect, disconnect to ldap.
    * ipa-kra-install: Proper connect/disconnect for install and uninstall.
    * ipa-ldap-update: Proper connect and disconnect to ldap.
    * ipa-nis-manage: Proper connect/disconnect for ldap. Try-finally removed
        and code block reindented.
    * ipa-replica-manage: Proper connect/disconnect to ldap.
    * ipa-replica-prepare: Connect added to validate_options(), where api is
        initialized and disconnected added at the end of run. Reconnect in
        ask_for_options() to validate directory manager password.
    * ipa-server-certinstall: Use api.Backend.ldap2 for ldap connections.
    * ipa-server-upgrade: Connect to and disconnect from api.Backend.ldap2.
    
    https://fedorahosted.org/freeipa/ticket/6461
    
    Reviewed-By: Martin Basti <mbasti@redhat.com>
    Reviewed-By: Jan Cholasta <jcholast@redhat.com>
    
        
file modified
+6 -14
file modified
+63 -77
file modified
+71 -85