mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Fix server installation
The fix to ticket #2982 removed a kinit call when the client was installed as part of a master. Re-add the kinit call in this case.
This commit is contained in:
parent
b4d35718a5
commit
c87ac6bc67
@ -1569,8 +1569,16 @@ def install(options, env, fstore, statestore):
|
|||||||
root_logger.info("Failed to add CA to the default NSS database.")
|
root_logger.info("Failed to add CA to the default NSS database.")
|
||||||
return CLIENT_INSTALL_ERROR
|
return CLIENT_INSTALL_ERROR
|
||||||
|
|
||||||
# If on master assume kerberos is already configured properly.
|
if options.on_master:
|
||||||
if not options.on_master:
|
# If on master assume kerberos is already configured properly.
|
||||||
|
# Get the host TGT.
|
||||||
|
try:
|
||||||
|
run(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab',
|
||||||
|
'host/%s@%s' % (hostname, cli_realm)], env=env)
|
||||||
|
except CalledProcessError, e:
|
||||||
|
root_logger.error("Failed to obtain host TGT.")
|
||||||
|
return CLIENT_INSTALL_ERROR
|
||||||
|
else:
|
||||||
# Configure krb5.conf
|
# Configure krb5.conf
|
||||||
fstore.backup_file("/etc/krb5.conf")
|
fstore.backup_file("/etc/krb5.conf")
|
||||||
if configure_krb5_conf(
|
if configure_krb5_conf(
|
||||||
|
Loading…
Reference in New Issue
Block a user