-
Notifications
You must be signed in to change notification settings - Fork 284
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
CA-393199: Disable external auth should clean pbis cache #5642
Conversation
ocaml/xapi/extauth_plugin_ADpbis.ml
Outdated
|
||
(* Clean pbis cache as we are disabling external auth *) | ||
( try pbis_common "/opt/pbis/bin/ad-cache" ["--delete-all"] |> ignore | ||
with _ -> debug "Got error cleaning pbis cache, ignore the error" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exception should be logged to help diagnose the problem.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The exception should be logged to help diagnose the problem.
I ignore the exception by intention as we do not really care about the error, (and ignored)
this is best to have clean.
But I have updated the code anyway as it always better to log errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar issue, but I think this is confusing:
in the commit message you mean:
"release cache as the domain has left" right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Requesting changes since linding's comment is waiting
well, leave domain is part of |
4c0c6ba
to
31226e8
Compare
Sorry, I accidentally create a new branch in this repo, (instead of my private repo). |
31226e8
to
9b67707
Compare
|
This was not tested |
The domain information is cached by PBIS. Such cache can help to accelerate query of domain information. However, the cache data should be cleaned during disable external auth to make sure - release cache as the domain is left - rejoin domain refresh all the domain information Signed-off-by: Lin Liu <[email protected]>
9b67707
to
c932279
Compare
The original code was test in my local env, |
I believe @psafont 's request has been addressed, so I'll dismiss his review and merge the PR. |
The domain information is cached by PBIS. Such cache can help to accelerate query of domain information.
However, the cache data should be cleaned during disable external auth to make sure