diff options
author | Petr Viktorin <pviktori@redhat.com> | 2012-09-12 10:30:31 -0400 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2012-09-13 12:38:43 +0200 |
commit | 2225730e99cef53415dbdd850f469081f98e1a72 (patch) | |
tree | 4407300b735b77bba0f63b585bcc30ff5911936c /ipa-client | |
parent | 79b90d1465ab408453ed0965ef489d2d994340ba (diff) | |
download | freeipa-2225730e99cef53415dbdd850f469081f98e1a72.tar.gz freeipa-2225730e99cef53415dbdd850f469081f98e1a72.tar.xz freeipa-2225730e99cef53415dbdd850f469081f98e1a72.zip |
Use temporary key cache for host key in server installation
This fixes an oversight in the earlier patch
Diffstat (limited to 'ipa-client')
-rwxr-xr-x | ipa-client/ipa-install/ipa-client-install | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipa-client/ipa-install/ipa-client-install b/ipa-client/ipa-install/ipa-client-install index 392aa65a0..3b1fd1a44 100755 --- a/ipa-client/ipa-install/ipa-client-install +++ b/ipa-client/ipa-install/ipa-client-install @@ -1572,9 +1572,10 @@ def install(options, env, fstore, statestore): if options.on_master: # If on master assume kerberos is already configured properly. # Get the host TGT. + os.environ['KRB5CCNAME'] = CCACHE_FILE try: run(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab', - 'host/%s@%s' % (hostname, cli_realm)], env=env) + 'host/%s@%s' % (hostname, cli_realm)]) except CalledProcessError, e: root_logger.error("Failed to obtain host TGT.") return CLIENT_INSTALL_ERROR |