diff options
-rwxr-xr-x | source4/setup/pwsettings | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source4/setup/pwsettings b/source4/setup/pwsettings index cd9c07dfb5..fccd73fc41 100755 --- a/source4/setup/pwsettings +++ b/source4/setup/pwsettings @@ -79,13 +79,10 @@ try: min_pwd_age = int(abs(int(res[0]["minPwdAge"][0])) / (1e7 * 60 * 60 * 24)) max_pwd_age = int(abs(int(res[0]["maxPwdAge"][0])) / (1e7 * 60 * 60 * 24)) except: + print "ERROR: Could not retrieve password properties!" if args[0] == "show": - print "ERROR: Password informations missing in your AD domain object!" print "So no settings can be displayed!" - sys.exit(1) - else: - print "ERROR: Could not retrieve password properties (used for password complexity setting)" - sys.exit(1) + sys.exit(1) if args[0] == "show": message("Password informations for domain '" + domain_dn + "'") |