s4:pwsettings: Don't assume a value for pwdProperties.
authorAndrew Kroeger <andrew@id10ts.net>
Mon, 7 Sep 2009 07:04:55 +0000 (02:04 -0500)
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Wed, 9 Sep 2009 23:09:54 +0000 (01:09 +0200)
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

index 68ff305c1ef565e8cc991d4ccc04d3f65ffdd7c7..bc65d2c0fa0be196f6f7a0589a33d3f21dec46ba 100755 (executable)
@@ -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 + "'")