summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2015-04-29 08:16:03 +0200
committerTomas Babej <tbabej@redhat.com>2015-07-02 13:23:21 +0200
commit0e11a87090f46695024a67eed58dbb5aaa7be9a3 (patch)
treed5118a34d89f3657bb970ea20a2beb7663aefa98
parente6a2a67d7a3144bd012a726fc244bbc0f201cfe9 (diff)
downloadfreeipa-0e11a87090f46695024a67eed58dbb5aaa7be9a3.zip
freeipa-0e11a87090f46695024a67eed58dbb5aaa7be9a3.tar.gz
freeipa-0e11a87090f46695024a67eed58dbb5aaa7be9a3.tar.xz
winsync-migrate: Require root privileges
https://fedorahosted.org/freeipa/ticket/4524 Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
-rw-r--r--ipaserver/winsync_migrate/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipaserver/winsync_migrate/base.py b/ipaserver/winsync_migrate/base.py
index 60c2cad..936a7ee 100644
--- a/ipaserver/winsync_migrate/base.py
+++ b/ipaserver/winsync_migrate/base.py
@@ -71,7 +71,8 @@ class MigrateWinsync(admintool.AdminTool):
the realm passed via --realm option
"""
- super(MigrateWinsync, self).validate_options()
+ # Require root to have access to HTTP keytab
+ super(MigrateWinsync, self).validate_options(needs_root=True)
if self.options.realm is None:
raise admintool.ScriptError(