Verify that passwords specified through command line options of ipa-server-install meet the length requirement.

ticket 1621
This commit is contained in:
Jan Cholasta
2011-08-18 20:49:05 -04:00
committed by Rob Crittenden
parent d28f1c3b7c
commit cc7f9aa7a9
+5
View File
@@ -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")