Skip to content
  1. Nov 30, 2021
    • Rafael Guterres Jeffman's avatar
      ipaservice: code refactor. · f2b3e88d
      Rafael Guterres Jeffman authored
      This PR refactors ipaservice to reduce the number of variables (in
      favor of a 'struct') and to group member management code so that it
      can be leveraged, and not partially duplicated, between the states
      and actions.
      
      Altough this code is less direct that the previous one, it will reduce
      the number fo changes to be made if changes to member management is
      required.
      f2b3e88d
  2. Nov 29, 2021
  3. Nov 26, 2021
  4. Nov 25, 2021
  5. Nov 24, 2021
  6. Nov 16, 2021
    • Rafael Guterres Jeffman's avatar
      CI: Test modules against different Ansible versions. · 612b6076
      Rafael Guterres Jeffman authored
      Currently, upstream CI test documentation against different Ansible
      versions, but playbook tests are only executed with Ansible 2.9 series.
      This patch add support for running playbook tests against Ansible 2.9,
      ansible-core 2.11, and against latest version of Ansible.
      
      As running all the tests for every PR would take too long, the tests
      for every PR use only Anisble 2.9, and are executed on Fedora-latest
      and CentOS 7 and 8.
      
      A new pipeline for nightly tests was added, which runs the tests in the
      same distros, using Ansible 2.9, latest and Ansible-core 2.11.
      612b6076
  7. Nov 12, 2021
  8. Nov 11, 2021
  9. Nov 04, 2021
  10. Nov 03, 2021
    • Rafael Guterres Jeffman's avatar
      sudorule: Fix runas with external users and groups. · 22f31d02
      Rafael Guterres Jeffman authored
      When setting 'runasuser' or 'runasgroup' for a sudorule, either IPA or
      external users and groups can be used, but only IPA users and groups
      were being searched for when modifying the attributes, making this task
      not idempotent if an external group or user was used..
      
      This patch fixes this issue by comparing users and groups to the IPA
      and external setting.
      
      The IPA CLI commands are slightly confusing, as the sudorule-add and
      sudorule-mod display separate options for internal and external users
      and groups, but these options are deprecated and do not work anymore,
      in favor of sudorule-add-runasuser and sudorule-add-runasgroup, which
      don't diferentiate between internal and external users, from the CLI
      user perspective.
      22f31d02
    • Thomas Woerner's avatar
      Merge pull request #667 from rjeffman/fix_service_principal_idempotent_issue · 5e9a2e8c
      Thomas Woerner authored
      ipaservice: Fix idempotent behavior for principal aliases.
      5e9a2e8c
  11. Oct 26, 2021
  12. Oct 25, 2021
    • Rafael Guterres Jeffman's avatar
      ipaservice: Fix idempotent behavior for principal aliases. · f4383140
      Rafael Guterres Jeffman authored
      When creating the lists to add/remove principal aliases, if the realm
      was not specified, the alias would be used as it did not matched the
      existing one, which has the realm part.
      
      This patch fixes the add/del list creation by adding the current API
      realm to each alias that does not have the realm part and then use
      this modified list to be compared against the existing principal list.
      
      This change also allows the use of the whole list in a single call to
      the IPA API to add/remove the principals, instead of a call for every
      one item in the list.
      f4383140
  13. Oct 12, 2021
  14. Oct 11, 2021