summaryrefslogtreecommitdiffstats
path: root/ipa-server/ipaserver
diff options
context:
space:
mode:
authorSimo Sorce <ssorce@redhat.com>2007-11-01 13:56:03 -0400
committerSimo Sorce <ssorce@redhat.com>2007-11-01 13:56:03 -0400
commit77a105688c889e8e52d62349b0c2aade09132813 (patch)
treebe8c3622082aab6caf6ad3d8610232b050c85ef2 /ipa-server/ipaserver
parent10917161a7e724144ce4bacbd5f77f4cdc0e04b9 (diff)
downloadfreeipa-77a105688c889e8e52d62349b0c2aade09132813.tar.gz
freeipa-77a105688c889e8e52d62349b0c2aade09132813.tar.xz
freeipa-77a105688c889e8e52d62349b0c2aade09132813.zip
Fix ticket #70
Diffstat (limited to 'ipa-server/ipaserver')
-rw-r--r--ipa-server/ipaserver/krbinstance.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipa-server/ipaserver/krbinstance.py b/ipa-server/ipaserver/krbinstance.py
index 26de2b03e..e17a3274d 100644
--- a/ipa-server/ipaserver/krbinstance.py
+++ b/ipa-server/ipaserver/krbinstance.py
@@ -237,7 +237,7 @@ class KrbInstance:
retry += 1
if retry > 15:
print "Error timed out waiting for kadmin to finish operations\n"
- os.exit()
+ sys.exit(1)
update_key_val_in_file("/etc/sysconfig/dirsrv", "export KRB5_KTNAME", "/etc/dirsrv/ds.keytab")
pent = pwd.getpwnam(self.ds_user)
@@ -265,7 +265,7 @@ class KrbInstance:
retry += 1
if retry > 15:
print "Error timed out waiting for kadmin to finish operations\n"
- os.exit()
+ sys.exit(1)
update_key_val_in_file("/etc/sysconfig/ipa-kpasswd", "export KRB5_KTNAME", "/var/kerberos/krb5kdc/kpasswd.keytab")
pent = pwd.getpwnam(self.ds_user)
@@ -293,7 +293,7 @@ class KrbInstance:
retry += 1
if retry > 15:
print "Error timed out waiting for kadmin to finish operations\n"
- os.exit()
+ sys.exit(1)
pent = pwd.getpwnam("apache")
os.chown("/etc/httpd/conf/ipa.keytab", pent.pw_uid, pent.pw_gid)