Skip to content
  1. Nov 24, 2021
  2. 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
  3. Oct 26, 2021
  4. 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
  5. Oct 01, 2021
    • Rafael Guterres Jeffman's avatar
      Fix execution of client context tests. · 16db5039
      Rafael Guterres Jeffman authored
      When running the tests that can be executed either on server or client
      context, without defining 'ipa_context', the context is automatically
      identified.
      
      Currently, the tests in upstream CI run only on a server, and the
      context is identified as "server" context, and in order to run the test
      using a client context 'ipa_context' must be set to 'client'.
      
      This patch fixes all the client context tests by correctly setting
      ipa_context when running the client context tests in a server host.
      16db5039
  6. Sep 29, 2021
  7. Sep 28, 2021
    • Rafael Guterres Jeffman's avatar
      ipaselfservice: Allow execution of plugin in client host. · 63423779
      Rafael Guterres Jeffman authored
      Update selfservice README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/selfservice/test_selfservice_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      63423779
    • Rafael Guterres Jeffman's avatar
      ipaservice: Allow execution of plugin in client host. · f1381edc
      Rafael Guterres Jeffman authored
      Update service README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/service/test_service_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      f1381edc
    • Rafael Guterres Jeffman's avatar
      ipauser: Allow execution of plugin in client host. · 27b50957
      Rafael Guterres Jeffman authored
      Update user README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/user/test_user_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      27b50957
    • Rafael Guterres Jeffman's avatar
      ipatrust: Allow execution of plugin in client host. · 577d8f78
      Rafael Guterres Jeffman authored
      Update trust README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/trust/test_trust_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      577d8f78
    • Rafael Guterres Jeffman's avatar
      ipasudorule: Allow execution of plugin in client host. · 829f1056
      Rafael Guterres Jeffman authored
      Update sudorule README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/sudorule/test_sudorule_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      829f1056
    • Rafael Guterres Jeffman's avatar
      ipasudocmdgroup: Allow execution of plugin in client host. · 3cd99781
      Rafael Guterres Jeffman authored
      Update sudocmdgroup README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/sudocmdgroup/test_sudocmdgroup_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      3cd99781
    • Rafael Guterres Jeffman's avatar
      ipasudocmd: Allow execution of plugin in client host. · 198e2152
      Rafael Guterres Jeffman authored
      Update sudocmd README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/sudocmd/test_sudocmd_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      198e2152
    • Rafael Guterres Jeffman's avatar
      ipaserver: Allow execution of plugin in client host. · 26dc8f1e
      Rafael Guterres Jeffman authored
      Update server README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/server/test_server_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      26dc8f1e
    • Rafael Guterres Jeffman's avatar
      iparole: Allow execution of plugin in client host. · c38b1e25
      Rafael Guterres Jeffman authored
      Update role README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/role/test_role_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      c38b1e25
    • Rafael Guterres Jeffman's avatar
      ipapwpolicy: Allow execution of plugin in client host. · d5451cda
      Rafael Guterres Jeffman authored
      Update pwpolicy README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/pwpolicy/test_pwpolicy_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      d5451cda
    • Rafael Guterres Jeffman's avatar
      ipaprivilege: Allow execution of plugin in client host. · 368cee93
      Rafael Guterres Jeffman authored
      Update privilege README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/privilege/test_privilege_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      368cee93
    • Rafael Guterres Jeffman's avatar
      ipapermission: Allow execution of plugin in client host. · a599f4ad
      Rafael Guterres Jeffman authored
      Update permission README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/permission/test_permission_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      
      Due to differences in data returned when running in a client context,
      some values had to be modified so that comparision works and an
      unnecessary call to IPA API is executed.
      a599f4ad
    • Rafael Guterres Jeffman's avatar
      ipalocation: Allow execution of plugin in client host. · 1440fb39
      Rafael Guterres Jeffman authored
      Update location README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/location/test_location_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      1440fb39
    • Rafael Guterres Jeffman's avatar
      ipahostgroup: Allow execution of plugin in client host. · 40f544ba
      Rafael Guterres Jeffman authored
      Update hostgroup README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/hostgroup/test_hostgroup_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      40f544ba
    • Rafael Guterres Jeffman's avatar
      ipahost: Allow execution of plugin in client host. · d0287f90
      Rafael Guterres Jeffman authored
      Update host README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/host/test_host_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      d0287f90
    • Rafael Guterres Jeffman's avatar
      ipahbacsvcgroup: Allow execution of plugin in client host. · 6ce1055b
      Rafael Guterres Jeffman authored
      Update hbacsvcgroup README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/hbacsvcgroup/test_hbacsvcgroup_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      6ce1055b
    • Rafael Guterres Jeffman's avatar
      ipahbacsvc: Allow execution of plugin in client host. · ec777dab
      Rafael Guterres Jeffman authored
      Update hbacsvc README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/hbacsvc/test_hbacsvc_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      ec777dab
    • Rafael Guterres Jeffman's avatar
      ipahbacrule: Allow execution of plugin in client host. · 876187ab
      Rafael Guterres Jeffman authored
      Update hbacrule README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/hbacrule/test_hbacrule_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      876187ab
    • Rafael Guterres Jeffman's avatar
      ipagroup: Allow execution of plugin in client host. · 1fdf7a43
      Rafael Guterres Jeffman authored
      Update group README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/group/test_group_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      1fdf7a43
    • Rafael Guterres Jeffman's avatar
      ipadnszone: Allow execution of plugin in client host. · cf7b197a
      Rafael Guterres Jeffman authored
      Update dnszone README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/dnszone/test_dnszone_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      
      Due to differences in data returned when running in a client context,
      verification if zone is active had to be modified.
      cf7b197a
    • Rafael Guterres Jeffman's avatar
      ipadnsrecord: Allow execution of plugin in client host. · a834de1f
      Rafael Guterres Jeffman authored
      Update dnsrecord README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/dnsrecord/test_dnsrecord_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      a834de1f
    • Rafael Guterres Jeffman's avatar
      ipadnsforwardzone: Allow execution of plugin in client host. · da45d74f
      Rafael Guterres Jeffman authored
      Update dnsforwardzone README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/dnsforwardzone/test_dnsforwardzone_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      
      Due to differences in data returned when running ipadnsforwardzone in
      a client context, some values had to be modified so that comparision
      works, avoiding unnecessary IPA API calls.
      da45d74f
    • Rafael Guterres Jeffman's avatar
      ipadnsconfig: Allow execution of plugin in client host. · 393cb8ba
      Rafael Guterres Jeffman authored
      Update dnsconfig README file and add tests for executing plugin with
      `ipaapi_context` set to `client`.
      
      A new test playbook can be found at:
      
          tests/dnsconfig/test_dnsconfig_client_context.yml
      
      The new test file can be executed in a FreeIPA client host that is
      not a server. In this case, it should be defined in the `ipaclients`
      group, in the inventory file.
      393cb8ba
Loading