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.
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 + "'")