mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-pwpolicy: correctly compare minlife and maxlife Fixes: 463849
This commit is contained in:
parent
574ca532b5
commit
83fa46a706
@ -105,7 +105,7 @@ def update_policy(client, options):
|
||||
print e
|
||||
return 1
|
||||
|
||||
if int(new.getValue('krbminpwdlife')) > int(new.getValue('krbmaxpwdlife')):
|
||||
if int(new.getValue('krbminpwdlife')) > int(new.getValue('krbmaxpwdlife')) * 24:
|
||||
print "Maximum password life must be greater than minimum"
|
||||
return 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user