Skip to content

Fallback to disabled LG_INCLUDE_INDIRECT when DC is unavailable - #55780

Merged
dwoz merged 1 commit into
saltstack:masterfrom
lukasraska:fix-54809
Jan 3, 2020
Merged

dwoz merged 1 commit into
saltstack:masterfrom
lukasraska:fix-54809

Conversation

@lukasraska

Copy link
Copy Markdown
Contributor

What does this PR do?

Fixes issue when DC is unavailable and Salt Minion tries to retrieve list of groups the running user is member of.

What issues does this PR fix or reference?

#54809

Previous Behavior

Minion also tries to resolve indirect groups, which causes minion to fail with exception which causes the service to restart indefinitely.

New Behavior

Minion tries to resolve only direct groups if indirect resolving fails, causing service to start properly if there is any issue with DC

Tests written?

Yes

Commits signed with GPG?

Yes

@lukasraska
lukasraska requested a review from a team as a code owner January 3, 2020 10:03
@lukasraska

Copy link
Copy Markdown
Contributor Author

I've used ERROR_ACCESS_DENIED, NERR_DCNotFound and RPC_S_SERVER_UNAVAILABLE (taken from https://docs.microsoft.com/en-us/windows/win32/api/lmaccess/nf-lmaccess-netusergetlocalgroups) to check the exception, as other don't make much sense for checking.

While NERR_DCNotFound probably won't occur, might be also good to check, so I've included it apart from what was mentioned in #54809

@lukasraska

Copy link
Copy Markdown
Contributor Author

re-run pr-windows2019-py3

@dwoz
dwoz merged commit 8786e71 into saltstack:master Jan 3, 2020
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

Successfully merging this pull request may close these issues.

2 participants