mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 16:51:55 -06:00
ipa-change-master-key: Really exit when not run as root Also fix this for ipa-fix-CVE-2008-3274
This commit is contained in:
parent
4d8a255c06
commit
9b8f7b1eac
@ -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."
|
||||
|
@ -170,6 +170,7 @@ def change_mkey(password = None, quiet = False):
|
||||
|
||||
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."
|
||||
|
Loading…
Reference in New Issue
Block a user