ipa-pwpolicy: correctly compare minlife and maxlife Fixes: 463849
This commit is contained in:
1 parent
574ca532b5
commit
83fa46a706
1 file changed
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user