summaryrefslogtreecommitdiffstats
path: root/ipaserver/plugins/pwpolicy.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipaserver/plugins/pwpolicy.py')
-rw-r--r--ipaserver/plugins/pwpolicy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/pwpolicy.py b/ipaserver/plugins/pwpolicy.py
index 5a2202aa0..e5e68fb58 100644
--- a/ipaserver/plugins/pwpolicy.py
+++ b/ipaserver/plugins/pwpolicy.py
@@ -411,7 +411,7 @@ class pwpolicy(LDAPObject):
if maxlife is None and 'krbmaxpwdlife' in existing_entry:
maxlife = int(existing_entry['krbmaxpwdlife'][0]) * 86400
- if maxlife is not None and minlife is not None:
+ if maxlife not in (None, 0) and minlife is not None:
if minlife > maxlife:
raise errors.ValidationError(
name='maxlife',