Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v1.14.7
  • v1.14.6
  • v1.14.5
  • v1.14.4
  • v1.14.3
  • v1.14.2
  • v1.14.1
  • v1.14.0
  • v1.13.2
  • v1.13.1
  • v1.13.0
  • v1.12.1
  • v1.12.0
  • v1.11.1
  • v1.11.0
  • v1.10.0
  • v1.9.2
  • v1.9.1
  • v1.9.0
  • v1.8.4
21 results

ipasudorule.py

  • Rafael Guterres Jeffman's avatar
    22f31d02
    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
    History
    sudorule: Fix runas with external users and groups.
    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.