diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-05-30 12:19:08 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-03 09:00:34 +0200 |
commit | 08ff248eeedd6dc4ebc5b118b7e4e81773594f51 (patch) | |
tree | 9e3391664e50344be467eb4e15b71e0ea549fcf3 /client | |
parent | 5a4a29be1c28e416174a9040d66c17d5288d3975 (diff) | |
download | freeipa-08ff248eeedd6dc4ebc5b118b7e4e81773594f51.tar.gz freeipa-08ff248eeedd6dc4ebc5b118b7e4e81773594f51.tar.xz freeipa-08ff248eeedd6dc4ebc5b118b7e4e81773594f51.zip |
client install: finalize API after CA certs are available
This is required for the finalize call to be able connect to the server to
retrieve API schema.
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'client')
-rwxr-xr-x | client/ipa-client-install | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/ipa-client-install b/client/ipa-client-install index 7306c810a..3ee59437a 100755 --- a/client/ipa-client-install +++ b/client/ipa-client-install @@ -2734,7 +2734,6 @@ def install(options, env, fstore, statestore): debug=options.debug, delegate=False, nss_dir=tmp_db.secdir) - api.finalize() if 'config_loaded' not in api.env: root_logger.error("Failed to initialize IPA API.") return CLIENT_INSTALL_ERROR @@ -2795,6 +2794,8 @@ def install(options, env, fstore, statestore): root_logger.info("Failed to add CA to temporary NSS database.") return CLIENT_INSTALL_ERROR + api.finalize() + # Now, let's try to connect to the server's RPC interface connected = False try: |