Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mddeff opened this issue Nov 5, 2021 · 0 comments
Open

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

mddeff opened this issue Nov 5, 2021 · 0 comments

Comments

@mddeff
Copy link

mddeff commented Nov 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant