summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipa-install/ipa-client-install
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2011-02-25 17:05:12 -0500
committerAdam Young <ayoung@redhat.com>2011-03-01 17:49:45 -0500
commit998dd701a728465aa70fe8041aa8daf8c0f1eefc (patch)
tree1c413efe85e73004b0901c26c9b83cf4da295030 /ipa-client/ipa-install/ipa-client-install
parent3f88bc1484bd6fe26fbe485d733caf77e6961fd5 (diff)
downloadfreeipa-998dd701a728465aa70fe8041aa8daf8c0f1eefc.zip
freeipa-998dd701a728465aa70fe8041aa8daf8c0f1eefc.tar.gz
freeipa-998dd701a728465aa70fe8041aa8daf8c0f1eefc.tar.xz
Fix kinit invocation in ipa-client-install
Diffstat (limited to 'ipa-client/ipa-install/ipa-client-install')
-rwxr-xr-xipa-client/ipa-install/ipa-client-install3
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 9f4c685..af7a2d2 100755
--- a/ipa-client/ipa-install/ipa-client-install
+++ b/ipa-client/ipa-install/ipa-client-install
@@ -546,6 +546,7 @@ CCACHE_FILE = "/etc/ipa/.dns_ccache"
def update_dns(server, hostname):
ip = resolve_ipaddress(server)
+ princ = 'host/%s' % hostname
sub_dict = dict(HOSTNAME=hostname,
IPADDRESS=ip,
@@ -571,7 +572,7 @@ def update_dns(server, hostname):
update_fd.close()
try:
- ipautil.run(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab'],
+ ipautil.run(['/usr/bin/kinit', '-k', '-t', '/etc/krb5.keytab', princ],
env={'KRB5CCNAME':CCACHE_FILE})
except CalledProcessError, e:
print >>sys.stderr, "Failed to obtain host TGT."