summaryrefslogtreecommitdiffstats
path: root/install/tools
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2011-08-15 09:02:39 +0200
committerRob Crittenden <rcritten@redhat.com>2011-08-18 20:49:05 -0400
commitcc7f9aa7a951d510973cd64711bd9eaa255a7fe3 (patch)
tree847a4b5c768b580db96b2e8207a65b365693261d /install/tools
parentd28f1c3b7cca50166444c7110e914f1efd4f779a (diff)
downloadfreeipa-cc7f9aa7a951d510973cd64711bd9eaa255a7fe3.tar.gz
freeipa-cc7f9aa7a951d510973cd64711bd9eaa255a7fe3.tar.xz
freeipa-cc7f9aa7a951d510973cd64711bd9eaa255a7fe3.zip
Verify that passwords specified through command line options of ipa-server-install meet the length requirement.
ticket 1621
Diffstat (limited to 'install/tools')
-rwxr-xr-xinstall/tools/ipa-server-install5
1 files changed, 5 insertions, 0 deletions
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index 411324b61..894a3e835 100755
--- a/install/tools/ipa-server-install
+++ b/install/tools/ipa-server-install
@@ -175,6 +175,11 @@ def parse_options():
options, args = parser.parse_args()
safe_options = parser.get_safe_opts(options)
+ if options.dm_password is not None and len(options.dm_password) < 8:
+ parser.error("DS admin password must be at least 8 characters long")
+ if options.admin_password is not None and len(options.admin_password) < 8:
+ parser.error("Admin user password must be at least 8 characters long")
+
if not options.setup_dns:
if options.forwarders:
parser.error("You cannot specify a --forwarder option without the --setup-dns option")