summaryrefslogtreecommitdiffstats
path: root/ipa-admintools
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2010-11-08 14:09:04 -0500
committerRob Crittenden <rcritten@redhat.com>2010-11-17 15:14:21 -0500
commitbf304533ce4dd003c451580323a6588e4d80b440 (patch)
tree2baddfc26391bfe17a36378893fba8cc2267c68f /ipa-admintools
parentb3fbb7cbea69b768b11dbbf530ed77d65010d428 (diff)
downloadfreeipa-ipa-1-2.tar.gz
freeipa-ipa-1-2.tar.xz
freeipa-ipa-1-2.zip
Use PATH in env when running commands to find binaries.ipa-1-2
Fedora 14 moved the kerberos binaries from /usr/kerberos/[s]bin to /usr/[s]bin. Pass PATH to the environment in ipautil.run() so we can work universally across distributions. Bug 650725
Diffstat (limited to 'ipa-admintools')
-rw-r--r--ipa-admintools/ipa-change-master-key6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipa-admintools/ipa-change-master-key b/ipa-admintools/ipa-change-master-key
index a4e943992..0c669cc18 100644
--- a/ipa-admintools/ipa-change-master-key
+++ b/ipa-admintools/ipa-change-master-key
@@ -223,7 +223,7 @@ def main():
os.environ['KRB5_CONFIG'] = ourkrb5conf
#Backup the kerberos key material for recovery if needed
- args = ["/usr/kerberos/sbin/kdb5_util", "dump", "-verbose", backupfile]
+ args = ["kdb5_util", "dump", "-verbose", backupfile]
print "Performing safety backup of the key material"
try:
output = ipa.ipautil.run(args)
@@ -239,7 +239,7 @@ def main():
print ""
#Convert the kerberos keys to the new master key
- args = ["/usr/kerberos/sbin/kdb5_util", "dump", "-verbose", "-new_mkey_file", newstashfile, convertfile]
+ args = ["kdb5_util", "dump", "-verbose", "-new_mkey_file", newstashfile, convertfile]
print "Converting key material to new master key"
try:
output = ipa.ipautil.run(args)
@@ -302,7 +302,7 @@ def main():
print "A backup copy of the old stash file should be saved in "+bkpstashfile
#Finally upload the converted principals
- args = ["/usr/kerberos/sbin/kdb5_util", "load", "-verbose", "-update", convertfile]
+ args = ["kdb5_util", "load", "-verbose", "-update", convertfile]
print "Uploading converted key material"
try:
output = ipa.ipautil.run(args)