Verify that passwords specified through command line options of
ipa-server-install meet the length requirement (at least 8 characters long).
https://fedorahosted.org/freeipa/ticket/1621
Honza
--
Jan Cholasta
>From 1e6b8242f9f3cf31bc86b539fdc9ccbcb19bced6 Mon Sep 17 00:00:00 2001
From: Jan Cholasta <jchol...@redhat.com>
Date: Mon, 15 Aug 2011 09:02:39 +0200
Subject: [PATCH] Verify that passwords specified through command line options
of ipa-server-install meet the length requirement.
ticket 1621
---
install/tools/ipa-server-install | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install
index 3605b03..a959ea4 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")
--
1.7.6
_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel