Skip to content

Exception thrown on adding "RunAs" {user,group} #50

@mddeff

Description

@mddeff

When adding a user/group using sudorule_add_runasuser and "RunAsGroup" set to category=all ("Any Group" in the UI), library throws exception:
python_freeipa.exceptions.BadRequest: users cannot be added when runs user or runAs group category='all'

The inverse is also occurs; when RunAsUser is set to "Anyone" (category=all) and you try to add a RunAsGroup.

This is a valid configuration in the IPA UI.

Installation info

Library

python-freeipa installed from pip - version 1.0.6

Client

ipa-client installed from packages - version 4.6.5, API_version 2.231
os - CentOS 7.7

Server

ipa-server - 4.6.8
os - CentOS 7.7

This is my work configuration, I can test on my home deployment which is a bit newer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions