summaryrefslogtreecommitdiffstats
path: root/install/tools/ipa-server-install
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:54:06 -0400
commit48eb95c5a47a8bfb036149981f3644b98e21dafa (patch)
tree5c22b5d477d01d4124cf04b0f2b7346afa1256d1 /install/tools/ipa-server-install
parent6aa0b57440ee83ef771c23c5bf81a5edc26e2e67 (diff)
downloadfreeipa-48eb95c5a47a8bfb036149981f3644b98e21dafa.tar.gz
freeipa-48eb95c5a47a8bfb036149981f3644b98e21dafa.tar.xz
freeipa-48eb95c5a47a8bfb036149981f3644b98e21dafa.zip
Verify that passwords specified through command line options of ipa-server-install meet the length requirement.
ticket 1621
Diffstat (limited to 'install/tools/ipa-server-install')
-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")