Skip to content

SYSDB: Fixing of sudorule without a sudoUser#80

Closed
celestian wants to merge 1 commit into
SSSD:masterfrom
celestian:t3241_sudoRule_master
Closed

SYSDB: Fixing of sudorule without a sudoUser#80
celestian wants to merge 1 commit into
SSSD:masterfrom
celestian:t3241_sudoRule_master

Conversation

@celestian

Copy link
Copy Markdown
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

jhrozek commented Nov 17, 2016

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

jhrozek commented Nov 22, 2016

Copy link
Copy Markdown
Contributor

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

@jhrozek

jhrozek commented Nov 22, 2016

Copy link
Copy Markdown
Contributor

@lslebodn

Copy link
Copy Markdown
Contributor

master:

sssd-1-14:

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.

3 participants