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

Fallback to disabled LG_INCLUDE_INDIRECT when DC is unavailable #55780

Merged
merged 1 commit into from
Jan 3, 2020

Conversation

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