s4:pwsettings: Don't assume a value for pwdProperties.
[kai/samba.git] / 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 + "'")