From 0206b1d6f979dab29c70ada10153578ce45b774a Mon Sep 17 00:00:00 2001 From: Andrew Kroeger Date: Mon, 7 Sep 2009 02:04:55 -0500 Subject: s4:pwsettings: Don't assume a value for pwdProperties. If we cannot retrieve the value, do not assume a particular value. The fact that we could not retrieve the value indicates a larger problem that we don't want to make worse bypossibly clearing bit fields in the pwdProperties attribute. --- source4/setup/pwsettings | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/setup/pwsettings') diff --git a/source4/setup/pwsettings b/source4/setup/pwsettings index 68ff305c1e..bc65d2c0fa 100755 --- a/source4/setup/pwsettings +++ b/source4/setup/pwsettings @@ -84,8 +84,8 @@ except: print "So no settings can be displayed!" sys.exit(1) else: - pwd_props = 0 - message("WARNING: Assuming previous password properties 0 (used for password complexity setting)") + print "ERROR: Could not retrieve password properties (used for password complexity setting)" + sys.exit(1) if args[0] == "show": message("Password informations for domain '" + domain_dn + "'") -- cgit