Always use computer domain to bind to RootDSE#1345
Conversation
|
Should probably do the same thing for |
|
I'm wondering if we need to adjust the
|
|
Good point. In fact, all calls to GetCurrentForest() need to be changed to GetComputerDomain().Forest. |
lusassl-msft
left a comment
There was a problem hiding this comment.
Found no other functions that use the problematic code. Tested HealthChecker and it seems to work fine with the updated calls (as the return object should be the same). Approved and ready to merge from my point of view.
Issue:
If a user is logged in to a machine in the Exchange forest using a user account from a trusted forest, binding to LDAP://RootDSE gives us the user forest.
Fix:
Get the computer's domain and explicitly bind to that RootDSE.