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

This commit is contained in:
Martin Nagy committed 2008-10-08 16:44:51 +02:00
1 parent 574ca532b5
commit 83fa46a706
1 file changed
+1 -1
+1 -1
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