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

SYSDB: Fixing of sudorule without a sudoUser #80

Closed
wants to merge 1 commit into from
Closed

SYSDB: Fixing of sudorule without a sudoUser #80

wants to merge 1 commit into from

Conversation

celestian
Copy link
Contributor

This patch solved a regression caused by the recent patches
to lowercase sudoUser -- in case sudoUser is missing completely,
we abort the processing of this rule and all others.

With this patch, we return EINVAL and gracefully skip
the malgormed rule instead.

Resolves:
https://fedorahosted.org/sssd/ticket/3241

@jhrozek
Copy link
Contributor

jhrozek commented Nov 17, 2016

This would work, but wouldn't it be better to return a custom error code instead of EINVAL so that we are sure we are not skipping some error from ldb or somewhere else?

@jhrozek jhrozek self-assigned this Nov 17, 2016
This patch solved a regression caused by the recent patches
to lowercase sudoUser -- in case sudoUser is missing completely,
we abort the processing of this rule and all others.

With this patch, we return ERR_MALFORMED_ENTRY and gracefully
skip the malformed rule instead.

Resolves:
https://fedorahosted.org/sssd/ticket/3241
@celestian
Copy link
Contributor Author

New version pushed.

@celestian celestian changed the title SYSDB: Sudorule without a sudoUser returns EINVAL SYSDB: Fixing of sudorule without a sudoUser Nov 21, 2016
@jhrozek
Copy link
Contributor

jhrozek commented Nov 22, 2016

ACK, the rule without a sudoUser attribute is properly skipped and the other rules are normally stored.

@jhrozek
Copy link
Contributor

jhrozek commented Nov 22, 2016

CI: http://sssd-ci.duckdns.org/logs/job/57/23/summary.html

the rawhide failure is not related, it's a know bug in the latest python-urllib release.

@lslebodn
Copy link
Contributor

master:

sssd-1-14:

@lslebodn lslebodn closed this Nov 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants