Skip to content
Snippets Groups Projects
  1. Jan 16, 2023
    • Thomas Woerner's avatar
      pwpolicy: Fix new bool checks for IPA prior to 4.9.10 · 9108065e
      Thomas Woerner authored
      With 4.9.10, the value of bools have been changed from "TRUE" and
      "FALSE" to real bool values.
      
      With IPA < 4.9.10 the new bool checks distcheck and usercheck failed
      the tests for enabling the checks with a "already enabled" error.
      
      A new version check altogether with providing the ansible module for
      gen_args has been added. The values True and False are now transformed
      into "TRUE" and "FALSE" for IPA < 4.9.10.
      
      The function bool_param has been renamed to bool_or_empty_param to match
      the int_or_empty_param and to have a more explaining name.
      9108065e
  2. Jan 12, 2023
  3. Nov 18, 2022
    • Rafael Guterres Jeffman's avatar
      pwpolicy: Add support for password check and grace limit. · 58725364
      Rafael Guterres Jeffman authored
      On recent versions of FreeIPA option to verify passwords and for
      controlling a password grace period have been added to IPA API.
      
      This patch adds support for the parameters maxrepeat, maxsequence,
      dictcheck and usercheck, available since FreeIPA, 4.9 and gracelimit,
      available since FreeIPA 4.9.10.
      
      Test playbooks for the module have been updated with the new supported
      parameters.
      
      New example playbooks can be found at:
      
          playbooks/pwpolicy/pwpolicy_grace_limit.yml
          playbooks/pwpolicy/pwpolicy_password_check.yml
      58725364
  4. Sep 30, 2022
    • Thomas Woerner's avatar
      ipapwpolicy: Fix documentation sections and agument spec · 4ac5d820
      Thomas Woerner authored
      ansible-test with ansible-2.14 is adding a lot of new tests to ensure
      that the documentation section and the agument spec is complete. Needed
      changes:
      
      DOCUMENTATION section
      
      - `type: str` needs to be set for string parameters
      - `type: list` needs to be set for list parameters
      - `elements: str` needs to be given for list of string parameters
      - `author` needs to be given with the github user also: `Name (@user)`
      - `extends_documentation_fragment: ipamodule_base_docs` needs added and
        `ipaadmin_*` parameters need to be removed
      
      argument_spec
      
      - `elements="str"` needs to be added to all list of string parameters
      
      The `copyright` date is extended with `-2022`.
      4ac5d820
  5. Aug 26, 2022
  6. Nov 24, 2021
  7. Oct 01, 2021
  8. Sep 08, 2021
    • Thomas Woerner's avatar
      pwpolicy: Use execute_ipa_commands · a11c4429
      Thomas Woerner authored
      execute_ipa_commands replces the check mode exit, the loop over the
      generated commands and also in the member failure handling for modules
      with member support.
      a11c4429
  9. Sep 01, 2021
    • Thomas Woerner's avatar
      pwpolicy: Use IPAAnsibleModule class · 683d1c97
      Thomas Woerner authored
      ipaadmin_variables are handled by IPAAnsibleModule,
      ansible_module.params_get is used to get the parameters and
      ansible_module.ipa_connect is used to simplify the module.
      683d1c97
  10. May 25, 2021
  11. Jan 06, 2021
    • Eric Nothen's avatar
      Enabled Ansible check_mode · 7bbb401b
      Eric Nothen authored
      Added code to the ipa* plugins to support Ansible's check_mode, by
      means of a clean exit before the execution of the actual list of
      commands that would otherwise create/update/delete IPA servers
      and/or its resources.
      7bbb401b
  12. Feb 26, 2020
  13. Feb 06, 2020
    • Thomas Woerner's avatar
      ipapwpolicy: Use global_policy if name is not set · 4dd1d25e
      Thomas Woerner authored
      If the name is not set, the policy global_policy is now used. It was needed
      before to explicitly name the global_policy. Also a check has been added
      to fail early if global_policy is used with state absent.
      
      The README for pwpolicy has been extended with an example for global_policy
      and also the description of the name variable.
      
      The test has also been extended to check a change of maxlife for
      global_policy and that global_policy can not be used with state: absent
      
      Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1797532
      4dd1d25e
  14. Oct 22, 2019
    • Thomas Woerner's avatar
      New pwpolicy management module · b3fd3a51
      Thomas Woerner authored
      There is a new pwpolicy management module placed in the plugins folder:
      
        plugins/modules/ipapwpolicy.py
      
      The pwpolicy module allows to ensure presence and absence of pwpolicies for
      groups.
      
      Here is the documentation for the module:
      
        README-pwpolicy.md
      
      New example playbooks have been added:
      
        playbooks/pwpolicy/pwpolicy_absent.yml
        playbooks/pwpolicy/pwpolicy_present.yml
      
      New tests added for pwpolicy:
      
        tests/pwpolicy/test_pwpolicy.yml
      b3fd3a51
Loading