summaryrefslogtreecommitdiffstats
path: root/ipa-admintools
diff options
context:
space:
mode:
authorMartin Nagy <mnagy@redhat.com>2008-09-24 19:38:23 +0200
committerMartin Nagy <mnagy@redhat.com>2008-09-24 20:09:35 +0200
commit9b8f7b1eac4edcca3ecdf6e4f15f1a9857e78172 (patch)
tree36556a32d736c7f621d46adcbcca3e757412c3ac /ipa-admintools
parent4d8a255c062d943695ae35c467ec8f2b0f7fa4b7 (diff)
downloadfreeipa-9b8f7b1eac4edcca3ecdf6e4f15f1a9857e78172.tar.gz
freeipa-9b8f7b1eac4edcca3ecdf6e4f15f1a9857e78172.tar.xz
freeipa-9b8f7b1eac4edcca3ecdf6e4f15f1a9857e78172.zip
ipa-change-master-key: Really exit when not run as root Also fix this for ipa-fix-CVE-2008-3274
Diffstat (limited to 'ipa-admintools')
-rw-r--r--ipa-admintools/ipa-change-master-key1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipa-admintools/ipa-change-master-key b/ipa-admintools/ipa-change-master-key
index 9ab5a96e8..a4e943992 100644
--- a/ipa-admintools/ipa-change-master-key
+++ b/ipa-admintools/ipa-change-master-key
@@ -156,6 +156,7 @@ def main():
if os.getuid() != 0:
print "ERROR: This command must be run as root"
+ sys.exit(1)
print "DANGER: This is a dangerous operation, make sure you backup all your IPA data before running the tool"
print "This command will restart your Directory and KDC Servers."