[PATCH] s4:pwsettings: Don't assume a value for pwdProperties.

Andrew Kroeger andrew at id10ts.net
Mon Sep 7 01:04:55 MDT 2009

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
 source4/setup/pwsettings |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/source4/setup/pwsettings b/source4/setup/pwsettings
index 68ff305..bc65d2c 100755
--- a/source4/setup/pwsettings
+++ b/source4/setup/pwsettings
@@ -84,8 +84,8 @@ except:
 		print "So no settings can be displayed!"
-		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 + "'")

Content-Type: text/plain;
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;

More information about the samba-technical mailing list