I pushed this under the 1-liner rule.

    Don't use full pathnames for kerberos binaries, let PATH find them.

    Kerberos binaries may be in /usr/kerberos/*bin or /usr/*bin, let PATH
    sort it out.

diff --git a/ipaserver/install/krbinstance.py b/ipaserver/install/krbinstance.py
index 41c6878..8c22e6f 100644
--- a/ipaserver/install/krbinstance.py
+++ b/ipaserver/install/krbinstance.py
@@ -367,7 +367,7 @@ class KrbInstance(service.Service):
         MIN_KRB5KDC_WITH_WORKERS = "1.9"
         cpus = os.sysconf('SC_NPROCESSORS_ONLN')
         workers = False
- (stdout, stderr, rc) = ipautil.run(['/usr/bin/klist', '-V'], raiseonerr=False) + (stdout, stderr, rc) = ipautil.run(['klist', '-V'], raiseonerr=False)
         if rc == 0:
             verstr = stdout.split()[-1]
             ver = version.LooseVersion(verstr)

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to