Hi,

this patch fixes the installation problems on master on F19 with krb5 packages >= 1.11.2-6


https://fedorahosted.org/freeipa/ticket/3666

Tomas
From f3e6b38bee50bf5856ae04bfb6ccd109b636f037 Mon Sep 17 00:00:00 2001
From: Tomas Babej <tba...@redhat.com>
Date: Mon, 3 Jun 2013 12:06:06 +0200
Subject: [PATCH] Use private ccache in ipa-server-install

https://fedorahosted.org/freeipa/ticket/3666
---
 install/tools/ipa-server-install | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index 62adbd5bc5183793f3371e46e276b9ad20077b84..db29ac3a79228ae44435630e2ad9fb6bd1145ada 100755
--- a/install/tools/ipa-server-install
+++ b/install/tools/ipa-server-install
@@ -1210,6 +1210,7 @@ def main():
 
 if __name__ == '__main__':
     success = False
+
     try:
         # FIXME: Common option parsing, logging setup, etc should be factored
         # out from all install scripts
@@ -1219,11 +1220,20 @@ if __name__ == '__main__':
         else:
             log_file_name = "/var/log/ipaserver-install.log"
 
+        # Use private ccache
+        (cache_desc, cache_path) = tempfile.mkstemp(prefix='krbcc')
+        os.environ['KRB5CCNAME'] = cache_path
+
         installutils.run_script(main, log_file_name=log_file_name,
             operation_name='ipa-server-install')
         success = True
 
     finally:
+        # Remove private ccache
+        os.close(cache_desc)
+        if os.path.exists(cache_path):
+            os.remove(cache_path)
+
         if not success and installation_cleanup:
             # Do a cautious clean up as we don't know what failed and what is
             # the state of the environment
-- 
1.8.1.4

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

Reply via email to