mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Verify that passwords specified through command line options of ipa-server-install meet the length requirement.
ticket 1621
This commit is contained in:
parent
d28f1c3b7c
commit
cc7f9aa7a9
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user