Skip to content
Snippets Groups Projects
Unverified Commit 2d930511 authored by Thomas Woerner's avatar Thomas Woerner Committed by GitHub
Browse files

Merge pull request #1078 from rjeffman/ipapwpolicy_simple_attribute_test

ipapwpolicy: simplified and faster attribute verification
parents be228d1d a6944602
No related branches found
No related tags found
No related merge requests found
...@@ -230,17 +230,15 @@ def check_supported_params( ...@@ -230,17 +230,15 @@ def check_supported_params(
"pwpolicy_add", "passwordgracelimit") "pwpolicy_add", "passwordgracelimit")
# If needed, report unsupported password checking paramteres # If needed, report unsupported password checking paramteres
if not has_password_check: if (
check_password_params = [maxrepeat, maxsequence, dictcheck, usercheck] not has_password_check
unsupported = [ and any([maxrepeat, maxsequence, dictcheck, usercheck])
x for x in check_password_params if x is not None ):
] module.fail_json(
if unsupported: msg="Your IPA version does not support arguments: "
module.fail_json( "maxrepeat, maxsequence, dictcheck, usercheck.")
msg="Your IPA version does not support arguments: "
"maxrepeat, maxsequence, dictcheck, usercheck.") if not has_gracelimit and gracelimit is not None:
if gracelimit is not None and not has_gracelimit:
module.fail_json( module.fail_json(
msg="Your IPA version does not support 'gracelimit'.") msg="Your IPA version does not support 'gracelimit'.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment