ipa-pwpolicy: correctly compare minlife and maxlife Fixes: 463849

This commit is contained in:
Martin Nagy 2008-10-08 16:00:57 +02:00
parent 574ca532b5
commit 83fa46a706

View File

@ -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